我有一个问题。我编写了这段Google Apps脚本,但是我没有得到我正在等待的结果
function getDataFromQuery(myId){
var data;
var sqlSlect = encodeURIComponent("select A, B, C, D, E, F, G, H, I, J, K where A ="+myID+" ");
try{
var fullQuery = "https://docs.google.com/a/google.com/spreadsheets/d/MY_GOOGLE_SPREADSHEET_ID/gviz/tq?tq="+sqlSlect+"&gid=THE_SHEET_WHERE_INFO_IS";
Logger.log("<Full Query> "+fullQuery);
data = UrlFetchApp.fetch(
"https://docs.google.com/a/google.com/spreadsheets/d/MY_GOOGLE_SPREADSHEET_ID/gviz/tq?tq="+sqlSlect+"&gid=THE_SHEET_WHERE_INFO_IS");
Logger.log("<Result> "+data.getContentText());
} catch (e) {
Logger.log("< Some error > " + e.toString());
}
return data;
}
¿有人能给我一个关于发生了什么的想法吗?
感谢您的关注!