How to get user picture using Asana API?

廉价感情. 提交于 2019-12-11 10:56:54

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!