No problem, Eric.

I may be in the wrong on this, as I think the Shared Contacts documentation 
still says to use ContactsService; I chose to use 
gdata.contacts.client.ContactsClient because from everything I've read, the 
*Service libraries will be deprecated. Beyond that, please note the 
difference on line 3; it makes the difference between the client making 
requests to the Domain Shared Contacts list (GAL) vs* *xoauth_requestor_id's 
personal contacts.

*two_legged_oauth_token = gdata.gauth.TwoLeggedOAuthHmacToken(oauth_key, 
oauth_secret, *
*                 xoauth_requestor_id) *
*contacts_client = 
gdata.contacts.client.ContactsClient(source='dito-core-libs')*
*contacts_client.contact_list =[domain] *# set this if you want to work on 
domain shared contacts
*contacts_client.auth_token = two_legged_oauth_token*

You can strip the domain from the requestor id pretty simply: *domain = 
re.sub('^.*@','', xoauth_requestor_id)*. You can also cut this down into 
fewer lines by setting up most things into the object instantiations.

Vinay
http://www.ditoweb.com/about/leadership

-- 
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" 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://code.google.com/apis/contacts/community/forum.html

Reply via email to