Thanks for the help Vinay, here is my request code:

def get_contacts(self, user):
    """Uses two-legged OAuth to retrieve the user's Shared Contacts."""
    CONSUMER_KEY = "[secret key]"
    CONSUMER_SECRET = "[consumer secret]"
    SIG_METHOD = gdata.auth.OAuthSignatureMethod.HMAC_SHA1

    client = gdata.contacts.service.ContactsService(source='littlebiglist')
    client.SetOAuthInputParameters(SIG_METHOD, CONSUMER_KEY, 
consumer_secret=CONSUMER_SECRET,
                                   two_legged_oauth=True, 
requestor_id=user.email())

    feed = client.GetContactsFeed()

    if len(feed.entry):
      return feed.entry
    else:
      return None

-- 
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