Hello. I try in my GoogleAppEngine-project work with Google Docs. And I can't authorize over AuthSub. I get only the message "Token invalid - Invalid AuthSub token. Error 401".
I have some code in servlet #1: String nextUrl = "http://beatrix-kido.appspot.com/publish_anketa2"; String scope = "http://docs.google.com/feeds/default"; boolean secure = false; // set secure=true to request secure AuthSub tokens boolean session = false; String authSubUrl = AuthSubUtil.getRequestUrl(nextUrl, scope, secure, session); resp.sendRedirect(authSubUrl); Some code in "next" - http://beatrix-kido.appspot.com/publish_anketa2: String token = AuthSubUtil.getTokenFromReply(req.getQueryString()); try{ DocsService service = new DocsService("B-B-1"); service.setAuthSubToken(token); URL documentListFeedUrl = new URL("http://docs.google.com/feeds/ default/private/full"); DocumentListFeed feed = service.getFeed(documentListFeedUrl, DocumentListFeed.class); for (DocumentListEntry entry : feed.getEntries()){ resp.getWriter().println(entry.getTitle().getPlainText()); } } catch(ServiceException ex){ resp.getWriter().println(ex.getInternalReason()); resp.getWriter().println(ex.getExtendedHelp()); resp.getWriter().println(ex.getLocalizedMessage()); resp.getWriter().println(ex.getDebugInfo()); resp.getWriter().println(ex.getResponseBody()); } I am in greate despair :( 1 month a can't do it. Sorry for my bad English... Help me please somebody! -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
