How to get user picture using Asana API?

2019-07-26 09:42发布

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

标签: api asana
3条回答
家丑人穷心不美
2楼-- · 2019-07-26 09:57

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楼-- · 2019-07-26 10:09

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

查看更多
我想做一个坏孩纸
4楼-- · 2019-07-26 10:15

(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).

查看更多
登录 后发表回答