node-kintone
v0.2.0
Published
kintone node api
Downloads
1
Readme
node-kintone
simple kintone rest api
Install
npm install node-kintone
Usage
Basically the same as kintone javascript api.
Authorization
const kintone = require('node-kintone')
kintone.setSubdomain('example')
kintone.setApiToken('token')
kintone.setAccount('username', 'password')
kintone.setBasicAuthentication('username', 'password')
Send request
kintone.api('/k/v1/record', 'GET', { app: 1, id: 1 }).then((res) => {
console.log(res)
}).catch((err) => {
console.log(err)
})
Callback is not supported for now.
Get API endpoint
kintone.api.url('/k/v1/record')
kintone.api.urlForGet('/k/v1/record', { app: 1, id: 1 })
Guest space is not supportred.
Proxy
Not supported.
Upload file
kintone.uploadFile('/path/to/file')
Bulk get or put
kintone.getBulkRecords({ app: 1, query: 'order by date' }).then((records) => {
console.log(records)
})
kintone.putBulkRecords({ app: 1, records: [/*...*/] }).then((records) => {
console.log(records) // list of id and revision
})
You can't use limit or offset in the query option.