kintone.js
利用例
import Kintone from 'kintone-api';
const kt = new Kintone({
subDomain: 'xxxxxxxxx',
userName: 'xxxxxxxxx',
password: 'xxxxxxxxx'
});
kt.record.get({
appId: 1,
recordId: 2,
})
.then(({ res, err }) => {
if (err !== null) {
// error handling
}
// do anything
})
kt.record.getList({
appId: 1,
})
.then(({ res, err }) => {
if (err !== null) {
// error handling
}
// do anything
})
開発方法
事前準備
開発を行う前に以下のソフトウェアをインストールする。
リポジトリのセットアップ
以下の手順を踏むことで開発環境が構築できる。
- このリポジトリを任意のディレクトリへクローンする
- クローンしたローカルリポジトリへ移動
- 依存ライブラリの取得
# リポジトリのクローン
git clone https://github.com/nishitaniyuki/kintone
# 依存ライブラリの取得
yarn
利用可能コマンド
yarn run build
プロダクション用のファイルをdist
ディレクトリ以下に作成する。
yarn run test
テストの実行を行う。
yarn run lint
リント処理を行う。
動作環境
利用ライブラリ
Dependencies
- HTTP Client: isomorphic-fetch
- Base64 Transcoder: base64-js
Development Dependencies
作者
matsumoto itsuki / 松本逸輝
nishitani yuki / 西谷優希