You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| baseUrl | String | Conditionally<br />Required | The base URL for your Kintone environment.<br />It must start with `https`. (e.g. https://example.kintone.com) <br />Required in Node.js environment. If you omit it in browser environment, `location.origin` will be used.<br />The protocol of baseUrl must be `https` except when hostname is `localhost`. |
110
+
| auth | Object | Conditionally<br />Required | The object for authentication. See [Authentication](#Authentication). |
111
+
| basicAuth | Object || If your Kintone environment uses Basic authentication, please specify its username and password. |
112
+
| basicAuth.username | String || The username of Basic authentication. |
113
+
| basicAuth.password | String || The password of Basic authentication. |
114
+
| httpsAgent | Object ||**This parameter is available only in Node.js environment.**<br />The custom HTTPS agent to be used when making requests.<br />The agent should be compatible with [undici.Agent](https://github.com/nodejs/undici/blob/main/docs/docs/api/Agent.md). |
115
+
| clientCertAuth | Object ||**This parameter is available only in Node.js environment.**<br />**When `httpsAgent` parameter is given, this parameter is unavailable.**<br />If your Kintone environment uses [Client Certificate authentication](https://jp.cybozu.help/general/en/admin/list_security/list_access/secureaccess.html), please specify the certificate file and password. |
116
+
| clientCertAuth.pfx |[Buffer](https://nodejs.org/api/buffer.html#buffer_class_buffer)|| The [client certificate file](https://jp.cybozu.help/general/en/user/list_access/remote/webbrowser.html). Required, unless you specify `pfxFilePath`. |
117
+
| clientCertAuth.pfxFilePath | String || The path to [client certificate file](https://jp.cybozu.help/general/en/user/list_access/remote/webbrowser.html). Required, unless you specify `pfx`. |
118
+
| clientCertAuth.password | String || The password of client certificate. |
119
+
| proxy | Object ||**This parameter is available only in Node.js environment.**<br />If you use a proxy, please specify its configuration. |
120
+
| proxy.protocol | String || The protocol of the proxy server. Default is `http`. |
121
+
| proxy.host | String || The host of the proxy server. |
122
+
| proxy.port | Number || The port of the proxy server. |
123
+
| proxy.auth | Object || If the proxy server requires Basic authentication, please specify its username and password. |
124
+
| proxy.auth.username | String || The username of Basic authentication for the proxy server. |
125
+
| proxy.auth.password | String || The password of Basic authentication for the proxy server. |
126
+
| userAgent | String ||**This parameter is available only in Node.js environment.**<br />A User-Agent HTTP header |
127
+
| socketTimeout | Number ||**This parameter is available only in Node.js environment.**<br />The socket timeout in milliseconds. |
| oAuthToken | String | Yes | An OAuth access token you get through the [OAuth process flow](https://kintone.dev/en/docs/common/authentication/how-to-add-oauth-clients/#authorization-code-grant-flow). |
If you omit `auth` parameter, the client uses Session authentication.
168
+
169
+
## Helper functions
170
+
171
+
### Iterator helper
172
+
173
+
You can use the iterator to retrieve the API execution results efficiently.
174
+
For detailed usage examples, please refer to [https://github.com/kintone/js-sdk/blob/main/packages/rest/src/**tests**/helpers/iterator.test.ts](https://github.com/kintone/js-sdk/blob/main/packages/rest/src/__tests__/helpers/iterator.test.ts).
175
+
85
176
## Contribution Guide
86
177
87
178
See [CONTRIBUTING.md](https://github.com/kintone/js-sdk/tree/main/CONTRIBUTING.md) for guidelines on how to contribute to this project.
0 commit comments