JSPM

  • Created
  • Published
  • Downloads 7383
  • Score
    100M100P100Q196611F
  • License MIT

Kintone REST API client for JavaScript

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({
  host: "https://example.cybozu.com",
  // Use password authentication
  auth: { username: "username", password: "password" }
  // Use API Token authentication
  // auth: { apiToken: "API_TOKEN" }
  // Use session authentication (in browser only)
  // auth: {}
});

client.record
  .getRecords({ app: "1" })
  .then(resp => {
    console.log(resp.records);
  })
  .catch(err => {
    console.log(err);
  });