Hi Sudhakar,

After you get the Login URL using this:
String authSubLogin = AuthSubUtil.getRequestUrl(next, scope,
secure, session);

You need to redirect the user to that URL (The login page) and after
the user authenticates you will get and HTTP the parameter
RetrieveToken back.

You can find more information in the following page:
http://code.google.com/apis/gdata/authsub.html

Cheers,
Julian

On Oct 16, 7:44 am, sudhakar <[email protected]> wrote:
> Hi Team,
>
> i am trying to get my contact list so i am using the authentication
> with AuthSub
>
>  ContactsService myService = new ContactsService("windison-
> retrivont-1");
>         String next = "http://www.example.com/welcome.html";;
>         String scope = "http://www.google.com/m8/feeds/";;
>         boolean secure = false;
>         boolean session = true;
>         String authSubLogin = AuthSubUtil.getRequestUrl(next, scope,
> secure, session);
>         String token = AuthSubUtil.getTokenFromReply(authSubLogin);
>
> here the token i am gettign is null
>
> so any particular reason
> what should i do now..
>
> please help me out
>
> and  Can we put  String next  = "httP://localhost:9090/
> mywebApplicatoin/index.jsp/"
>
> Regards
> Sudhakar.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to