I can't seem to import rows into Google Fusion correctly. I always get a 503 Backend error. My Google Apps Script code is below.
var getDataURL = 'https://www.googleapis.com/fusiontables/v1/tables/{tableID}/import?key='+{apiKey};
var ssDown = SpreadsheetApp.openById({Spreadsheet ID}).getDataRange().getValues();
var options = { "method" : "post", "contentType" : "application/json", "headers" : { "Authorization" : "Bearer " + {token}, "Accept" : "application/json", }, 'encoding' = 'auto-detect', 'payload' = ssDown.toString(); } };
var output = UrlFetchApp.fetch(getDataURL,options).getContentText();