Hi,

It is possible to use 2-legged OAuth to get users contacts within a
Apps Domain:
http://code.google.com/apis/accounts/docs/OAuth.html#GoogleAppsOAuth

Small sample in Java:
ContactsService service = new ContactsService("app-name");

// Oauth
OAuthSigner signer = new OAuthHmacSha1Signer();
GoogleOAuthParameters oauthParameters = new GoogleOAuthParameters();
oauthParameters.setOAuthConsumerKey("domain.com");
oauthParameters.setOAuthConsumerSecret("XXXX....");
oauthParameters.setScope("http://www.google.com/m8/feeds/";);

// Create ContactService and authenticate using oauth credentials
service.setOAuthCredentials(oauthParameters, signer);
GoogleOAuthHelper oauthHelper = new GoogleOAuthHelper(signer);

URL feedUrl = new URL("http://www.google.com/m8/feeds/contacts/
[email protected]/full?
[email protected]&groupid=http://www.google.com/m8/
feeds/groups/[email protected]/base/6");
ContactFeed resultFeed = contactsService.getFeed(feedUrl,
ContactFeed.class);
System.out.println(resultFeed.getEntries().size());
...

Cheers,
Julian

On Oct 22, 11:22 pm, NMAGOCIO <[email protected]> wrote:
> I tried the 2 - legged OAuth method we use for Documents but it does
> not work in Contacts. This would be similar to what is done in
> Profiles.
--~--~---------~--~----~------------~-------~--~----~
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