试图连接到这个WebCEO API。
function getProjects() {
var payload = {
"key": "CUSTOMER_KEY",
"method": "get_projects"
};
payload = JSON.stringify(payload);
var url = "https://online.webceo.com/api/";
var options = {
"method": 'POST',
"contentType" : "application/json",
"payload": payload
};
var response = UrlFetchApp.fetch(url, options);
}
收到“对https://online.webceo.com/api/的请求失败,返回代码 404”。
关于我还需要包括/更改什么的任何提示?