I get this error: Unexpected exception after serializing a continuation (not many)
This is called FetchUrlApp.fetch (); call. I use Google Apps Script for sites, not for Google spreadsheets. The code works in the original instance, but as soon as I copy and paste the code into a new project, I get the above error message. I am referring to the Google Docs APIs. I read on other forums that I need authorization, but I could not get the correct permission to operate the code. When I run a copy of the code for the first time, tooltips never appear.
Exert code:
var oauthConfig = UrlFetchApp.addOAuthService("docs"); oauthConfig.setAccessTokenUrl("https://www.google.com/accounts/OAuthGetAccessToken"); oauthConfig.setRequestTokenUrl("https://www.google.com/accounts/OAuthGetRequestToken?scope=https://docs.google.com/feeds/"); oauthConfig.setAuthorizationUrl("https://www.google.com/accounts/OAuthAuthorizeToken"); oauthConfig.setConsumerKey(_consumerKey_); oauthConfig.setConsumerSecret(_consumerSecret_); var requestData3 = { "method": "GET", "headers": {"GData-Version": "3.0"}, "oAuthServiceName": "docs", "oAuthUseToken": "always", }; var url = "https://docs.google.com/feeds/" + userName + "/private/full/-/mine"; var result = UrlFetchApp.fetch(url, requestData3);
Thanks in advance James Crimm
James krimm
source share