using google docs api from within google apps script
问题 I'm trying to use the following code from the google docs API from within google apps script for testing purposes: var f = UrlFetchApp.fetch("https://docs.googleapis.com/v1/documents/1ys6KIY1XOhPHrgQBJ4XxR1WDl0etZdmR9R48h2sP2cc:batchUpdate", { method:"post", body: JSON.stringify({ "requests": [ { "deleteContentRange": { "range": { "startIndex": 1, "endIndex": 80 } } } ] }), headers: { Authorization:"Bearer " + ScriptApp.getOAuthToken(), "Content-Type": "application/json" } }) Logger.log(f)