Hi Ding,

Can you ask this kind of question on StackOverflow?
We moved Q&A functionality from this forum to "google-app-engine" tag there.
http://stackoverflow.com/questions/tagged/google-app-engine

Thanks,

On Sun, Jun 3, 2012 at 10:59 PM, Ding Qin <qind...@softhinker.com> wrote:

> Hi,
>
> I'm developing GWTP project, and below scenarios are tested
> successfully in my local development mode :
>
> 1. Get authenticated and authorized by OpenID and OAuth
> 2. Save GoogleOAuthParameters object into HttpSession.
> 3. Another action handler reuses the GoogleOAuthParameters stored in
> session to get SpreadsheetService object.
> 4. Use SpreadsheetService to manipulate spread sheets in GDoc.
>
> However, when being deployed to App Engine, nothing can be read from
> GDoc, and no error/warning also, and returned list is always empty.
>
> spreadsheetService = new SpreadsheetService("test");
> GoogleOAuthParameters oauthParameters =
>
> (GoogleOAuthParameters)sessionProvider.get().getAttribute(HttpSessionProvider.PARAM_OAUTH_PARAMETERS);
> spreadsheetService.setOAuthCredentials(oauthParameters, new
> OAuthHmacSha1Signer());
> oauthParameters.setScope(SCOPE_SPREADSHEET);
>
> If I clearly use username/password as below when initializing
> SpreadsheetService, I can retrieve data from GDoc.
>
> SpreadsheetService sService = new SpreadsheetService("test");
> sService.setUserCredentials("username", "password");
>
> I'm using App Engine SDK 1.6.6, and gdata-spreadsheet-3.0.
> Please advise whether anything I did wrongly.
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>


-- 
Takashi Matsuo | Developer Advocate | tmat...@google.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to