2
我從以下功能的「意外的錯誤」:意外的錯誤谷歌Apps腳本獲取
function getBomgarFeedbackXML(){
var url = "https://help.tradingtechnologies.com/api/reporting.ns?" +
"username=xxxxxx&password=xxxxxx&generate_report=SupportCustExitSurvey&" +
"start_date=2000-01-01&duration=0&report_type=rep&id=all";
var response = UrlFetchApp.fetch(url).getContentText();
Logger.log(response);
return(Xml.parse(response, true));
}
導致錯誤的代碼行是:
var response = UrlFetchApp.fetch(url).getContentText();
- 我能取該URL以編程方式使用其他腳本語言,如python
- 我已經嘗試在我的瀏覽器中獲取URL,我可以成功地執行此操作
- 我可以從Google apps腳本中成功取得「http://www.google.com」
- 在瀏覽到chrome中的URL時,我會收到以下警告,這可能與問題有關嗎?
任何幫助表示讚賞 感謝
優秀的,這個作品,非常感謝! – Sherlock