我似乎无法正确地将行导入Google Fusion . 我总是得到503后端错误 . 我的Google Apps脚本代码如下 .
var getDataURL ='https://www.googleapis.com/fusiontables/v1/tables/ / import?key =';
var ssDown = SpreadsheetApp.openById() . getDataRange() . getValues();
var options = {"method":"post","contentType":"application/json","headers":{"Authorization":"Bearer " ,"Accept":"application/json",},'encoding' = 'auto-detect','payload' = ssDown.toString(); }};
var output = UrlFetchApp.fetch(getDataURL,options).getContentText();
1 回答
问题是由于我的粗心编码引起的 . 正确的代码是: