public class KintoneClient
extends Object
implements AutoCloseable
KintoneClient
is the client for operating Kintone APIs.
To obtain an instance of this class, must use KintoneClientBuilder
.
KintoneClient client = KintoneClientBuilder.create("https://{your Kintone domain}.cybozu.com")
.authByPassword(username, password)
.build();
This class provides Kintone APIs via sub-components: RecordClient
, AppClient
,
and so on. For example, if you want to get a record of an App, use the record()
method
of this class to get the record client.
Record record = client.record().getRecord(appId, recordId);
See each sub-component to find the documents of specific APIs.
Note:
The instance of this class holds an HTTP connection inside. Call close()
to releases
any resources associated with the connection when the instance is no longer used.
Modifier and Type | Method and Description |
---|---|
AppClient |
app()
Get the client for app APIs.
|
BulkRequestsResponseBody |
bulkRequests(BulkRequestsRequest request)
Runs multiple API requests sequentially to multiple Apps.
|
void |
close() |
FileClient |
file()
Get the client for file APIs.
|
PluginClient |
plugin()
Get the client for plugin APIs.
|
RecordClient |
record()
Get the client for record APIs.
|
SchemaClient |
schema()
Get the client for schema APIs.
|
SpaceClient |
space()
Get the client for space APIs.
|
public AppClient app()
public RecordClient record()
public SpaceClient space()
public FileClient file()
public SchemaClient schema()
public PluginClient plugin()
public BulkRequestsResponseBody bulkRequests(BulkRequestsRequest request)
request
- the request parameters. See BulkRequestsRequest
BulkRequestsResponseBody
public void close() throws IOException
close
in interface AutoCloseable
IOException