【发布时间】:2020-06-29 06:47:31
【问题描述】:
我在使用 Google Apps 与名为 Kissflow 的管理软件交互时遇到问题。
function fun2() {
var id = "yyy";
var apisecretkey = "xxx";
var url ='https://'+id+'.kissflow.com/api/1/verify';
var options = {
method: 'post',
headers : {"Authorization" : " Basic " + Utilities.base64Encode(id + ":" + apisecretkey)},
payload: {
"grant_type": "client_credentials",
"scope": "basic+user"
},
muteHttpExceptions: true
};
var response = JSON.parse(UrlFetchApp.fetch(url, options).getContentText());
}
我想运行这个 API 文档的简单示例,例如,我的目标是能够通过电子表格中的交互将数据发送到软件。如果你能在这方面帮助我,我将非常感激,我是 API 的新手 :)
出现以下错误:SyntaxError: unexpected token
【问题讨论】:
标签: javascript json api google-apps-script google-sheets