Getting null for token........

17 views
Skip to first unread message

Raj

unread,
Dec 21, 2009, 1:03:26 AM12/21/09
to Google Contacts API
Hello All,

I am trying to import gmail contacts into my web app using google
contacts api-Java using AuthSub proxy authentication.

I am using tomcat on port 8080 and set all the parameters along with
parameter next as follows :

<a href="https://www.google.com/accounts/AuthsubRequest?next=http://
xx.xxx.xxx.xx:8080/GContacts/GoogleTest&scope=https://www.google.com/
m8/feeds&secure=0&session=true">

after click on grant access I am getting token appended with the url.
Then I am trying to get token using following method

String token=AuthSubUtil.getTokenFromReply("http://xx.xxx.xxx.xx:8080/
GContacts/GoogleTest");

and I am getting null here.

Can anybody please tell me where I went wrong? Or what should I need
to do to get the token ?

Thanks in advance.

Julian (Google)

unread,
Dec 22, 2009, 11:38:18 AM12/22/09
to Google Contacts API
This group has been moved to Google Apps API Help Forum:
http://www.google.com/support/forum/p/apps-apis?hl=en

Please re-post your question there under Contacts API:
http://www.google.com/support/forum/p/apps-apis?hl=en

Regards,
Julian

Reply all
Reply to author
Forward
0 new messages