Could anyone kindly help me to solve this problem?
Here are the steps about how I got the token and sent the request to
Google Calendar server
1. Get the single-use token by sending the request to
String onetimeUseToken = AuthSubUtil.getTokenFromReply
(request.getQueryString());
2. Upgrade the single-use token to session token by sending the
request to
String sessionToken = AuthSubUtil.exchangeForSessionToken
(onetimeUseToken,null);
3. Use the returned session token
CalendarService calendarService = new CalendarService
("current_user_calendar_service");
calendarService.setAuthSubToken(sessionToken, null);
CalendarQuery myQuery = new CalendarQuery(new URL("http://
www.google.com/calendar/feeds/"+calendarUrl+"/private/full"));
calendarService.query(myQuery, CalendarEventFeed.class).getEntries();
4. but instead of getting call my calendar entries i get the following
error
<HTML>
<HEAD>
<TITLE>Token invalid - AuthSub token has wrong scope</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Token invalid - AuthSub token has wrong scope</H1>
<H2>Error 401</H2>
</BODY>
</HTML>
I really appreciated if someone could kindly help me to solve this
problem.
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" 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-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---