1
我正在使用Google应用脚本从外部API获取数据。Google Apps脚本从外部API获取响应
这是我使用的代码:
function cenas(){
var url='https://app.ecwid.com/api/v1/XXX/orders';
var response = UrlFetchApp.fetch(url);
Logger.log(response);
}
我得到以下错误:
Access token or API key not found in request parameters
我知道我必须提供秘密认证密钥。但是我如何在函数中包含它?