cybozu developer network/組織エクスポート API(JSON)
https://developer.cybozu.io/hc/ja/articles/202124754#step2
Web便利ツール@ツールタロウ
https://tool-taro.com/base64_encode/
(() => {
'use strict';
kintone.events.on('app.record.detail.show',(event) => {
const url ='https://{sub-domain}.cybozu.com/v1/organizations.json';
const headers = {
'X-Cybozu-Authorization': '{ID:PASS}', //Encording with BASE64
};
const data = {};
kintone.proxy(url, 'GET', headers, data, function(resp){
console.log(resp);
}, function(resp){
const errmsg = 'エラーが発生しました';
if (resp.message !== undefined){
errmsg += '\n' + resp.message;
}
})
});
})();