javascript |您不允许呼叫用户UrlFetchApp.fetch

时间:2019-07-03 12:55:00

标签: javascript google-sheets

我有此代码

var url = "mysite.com/api/rest/googlesheets?modelnumber=WD5000M22K-60Z1LT0&spec_1=2014&spec_VJ"

var params = { 
  headers: { 'Content-Type': "application/json", 'Accept': "application/json","oauthScopes": "https://www.googleapis.com/auth/script.external_request"},
  muteHttpExceptions: true,
  method: "GET",
  contentType: "application/json",
  validateHttpsCertificates: false,
};


var response = UrlFetchApp.fetch(url, params);  

但是我有错误You are not allowed to call user UrlFetchApp.fetch Required Permissions https://www.googleapis.com/auth/script.external_request

我如何获得这个分辨率

0 个答案:

没有答案