title: Authorization is required to perform that action
body: <p>I have a script that converts a Google Doc to a Blogger post ( saving the images to Picasa along the way )... I have used the PicasaApp library.</p>
  <p>I want to run the app as &quot;User accessing the web app&quot; so that people can use it on their docs and with their blogs.</p>
  <p>It works fine for me, but always returns &quot;Authorization is required to perform that action.&quot; when used with another google account.</p>
  <p>I have a function that runs test code for talking to DocList, PicasaApp and Blogger via the API. They all force me, the author to authenticate and it works fine. I even tried changing the the name of googleOAuth_ to my_googleOAuth ( see below)  in case it was clashing with the googleOAuth_ in PicasaApp.</p>
  <pre><code>function my_googleOAuth(name,scope) {
        var oAuthConfig = UrlFetchApp.addOAuthService(name);
      oAuthConfig.setRequestTokenUrl(&quot;https://www.google.com/accounts/OAuthGetRequestToken?scope=&quot;+scope);
        oAuthConfig.setAuthorizationUrl(&quot;https://www.google.com/accounts/OAuthAuthorizeToken&quot;);
        oAuthConfig.setAccessTokenUrl(&quot;https://www.google.com/accounts/OAuthGetAccessToken&quot;);
      oAuthConfig.setConsumerKey(&quot;anonymous&quot;); // Client ID:
      oAuthConfig.setConsumerSecret(&quot;anonymous&quot;); //Client secret
      return {oAuthServiceName:name, oAuthUseToken:&quot;always&quot;};
  }
  </code></pre>
  <p>This is really driving me nuts, and it seems there isn't a clear answer anywhere about what to do. I've done the edit/save/run loop a dozen different ways.</p>