0

1 分钟后出现超时错误。从下面的代码。我可以设置超时值吗?

function apiPost(token, url, body) {
  var response = UrlFetchApp.fetch(url, {
    method: 'post',
    contentType: 'application/json',
    headers: {
      'Authorization': token
    },
    payload: JSON.stringify(body)
  });
  return JSON.parse(response.getContentText());
}
4

0 回答 0