简体   繁体   English

使用Office365 REST API检索用户照片

[英]Retrieve user photo with Office365 REST API

I am using Office365 REST API to get details about my contacts , but I noticed there is no information about user's profile picture in the response. 我正在使用Office365 REST API来获取有关我的联系人的详细信息 ,但我注意到响应中没有关于用户个人资料图片的信息。
I suppose I need to retrieve in some other way, but I wasn't able to figure out how. 我想我需要以其他方式检索,但我无法弄清楚如何。
Any suggestion? 有什么建议吗?

Right now, the REST APIs don't support contact photos or user profile photos. 目前,REST API不支持联系人照片或用户个人资料照片。 We're working on adding that soon. 我们正在努力尽快添加。 Keep an eye on our blog or follow me on @JasonJohMSFT) for announcements regarding new features. 关注我们的博客或关注@JasonJohMSFT),了解有关新功能的公告。

UPDATE: The User Photo API is now in preview: https://msdn.microsoft.com/office/office365/APi/photo-rest-operations 更新:用户照片API现在处于预览状态: https//msdn.microsoft.com/office/office365/APi/photo-rest-operations

Thanks for your interest in Office 365 REST APIs! 感谢您对Office 365 REST API的关注! We don't yet support retrieving user's picture but it is in the works. 我们还不支持检索用户的图片,但它正在开发中。 Stay tuned for an update from us on http://blogs.office.com/dev/ when this feature is ready. 当此功能准备就绪时,请继续关注我们在http://blogs.office.com/dev/上的更新。

In the mean time, you could use our Exchange Web Services SOAP API to retrieve the user's picture. 与此同时,您可以使用我们的Exchange Web服务SOAP API来检索用户的图片。 See here for more info. 有关详细信息,请参见此处 Let me know if you have any questions or need more info. 如果您有任何疑问或需要更多信息,请与我们联系。

Thanks, 谢谢,

Venkat Venkat

I think you would lose your time because there is no image property returned bu graph api. 我想你会失去你的时间,因为没有图像属性返回bu图api。 I already checked it. 我已经检查过了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM