LiveChat APIでList all tagsを試したときの備忘録
コード.gs
function getTags() {
var options = {
"method" : "get",
"headers" : {
"X-API-Version": 2,
"Content-Type" : "application/json",
"Authorization" : "Bearer " + getProp('token')
}
};
var url = "https://api.livechatinc.com/tags";
var response = UrlFetchApp.fetch(url, options);
Logger.log(response)
}
function getProp(key) {
return PropertiesService.getScriptProperties().getProperty(key);
}
|
getProp('token')はアクセストークンです
LiveChatのアクセストークンを取得したい
参考
List all tags
https://developers.livechatinc.com/docs/rest-api/#list-all-tags