问题
I am trying to display user picture using Asana API, nut the /users/id service just return id, mail, name, workspaces. How can I?
Thanks
回答1:
(I work at Asana)
The API does not currently provide access to the user profile photo. It is something we are considering adding in the future, but I can't provide any specifics on the timeline.
回答2:
Until the API provides access to the photo, a useful workaround that we've been using is to get the user's email address out of Asana and then try to pull a picture from Gravatar. Obviously it requires the users to have registered at Gravatar, and they might have different pictures than what it is in Asana... but it's good enough for many situations.
回答3:
(I work at Asana, too)
We recently added the ability to fetch (but not change) the user's photo. Check out the updated documentation (specifically the "photo" attribute of the user model is what you're looking for).
来源:https://stackoverflow.com/questions/14565482/how-to-get-user-picture-using-asana-api