Package Exports
- @kintone/rest-api-client
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@kintone/rest-api-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
kintone-rest-api-client
Installation
npm install @kintone/rest-api-client
Usage
const { KintoneRestAPIClient } = require("@kintone/rest-api-client");
const client = new KintoneRestAPIClient({
baseUrl: "https://example.cybozu.com",
// Use password authentication
auth: { username: "username", password: "password" }
// Use API Token authentication
// auth: { apiToken: "API_TOKEN" }
// Use session authentication if `auth` is omitted (in browser only)
});
client.record
.getRecords({ app: "1" })
.then(resp => {
console.log(resp.records);
})
.catch(err => {
console.log(err);
});