Hi,

The Contact Service has the following constructor:
public ContactsService(String applicationName)

Then you should be able to use setAuthSubToken, if you can, please
share part of your code, maybe we can help.

--Julian

On Jul 8, 8:23 pm, Churky <[email protected]> wrote:
> I am having some trouble creating a ContactService Object using Java
> with Authsub authentication.
>
> Basically I have the Authsub working correctly for other Google
> products already. And I want to reuse the session token to continue
> with Contacts. I added the contact scope to my Authsub. But when I
> create a ContactSerice Object: ContactsService contactsService = new
> ContactsService("ABC"); I get an exception.
> I followed the example 
> here:http://code.google.com/apis/contacts/docs/2.0/developers_guide_java.h...
> But it say to set the authentication by means of this:
> ContactsService.setAuthSubToken(sessionToken, null);
> But there is not static method to use unless I create the service
> object first. So I think there is something wrong with the Google
> Documentation.
--~--~---------~--~----~------------~-------~--~----~
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