Skip to content

Include avatars for returned contacts #15

wants to merge 1 commit into from

2 participants

sailing commented Aug 9, 2012

I wrote two ways to retrieve avatars: the avatar URL as supplied by Google Contacts API, or the avatar itself.

In my case I opted to use the avatar url (which requires authentication), and so I send the access token along with the list of contacts.

Feel free to improve as you see fit. Cheers!

Diego81 commented Sep 9, 2012

Hi Galen,
Thanks for the pull request and sorry for the late reply.
I think I will opt for the first method, so including the url in the response object. I will therefore remove the commented code that fetches the image itself.
Quick question: why do you place access_token in the result object? If I choose to only include the url, can I just ignore access_token and token_type and not pass them as parameters in the parse_contacts method at all?


Diego81 commented May 17, 2013

The latest version of OmniContacts support this feature. You can get the user's avatar url by accessing the profile_picture key for that specific contact.

@Diego81 Diego81 closed this May 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.