Could someone direct me to how I get the user name for the URL feed
after authsub has returned with the granted permission?
//returning from the authsub page with token appended to url
String onetimeUseToken = AuthSubUtil.getTokenFromReply
(req.getQueryString());
String sessionToken = AuthSubUtil.exchangeForSessionToken
(onetimeUseToken, null);
ContactsService myService = new ContactsService("contacts");
myService.setAuthSubToken(sessionToken, null);
URL feedUrl = new URL("http://www.google.com/m8/feeds/contacts/
[email protected]/full");
ContactFeed resultFeed = myService.getFeed(feedUrl,
ContactFeed.class);
resp.getWriter().println(resultFeed.getTitle().getPlainText());
This gives me the feed but I need to manually set the user name in the
feedUrl
It would also be nice to great the user.
Thank you,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Contacts 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-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---