简体   繁体   中英

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.
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. We're working on adding that soon. Keep an eye on our blog or follow me on @JasonJohMSFT) for announcements regarding new features.

UPDATE: The User Photo API is now in preview: https://msdn.microsoft.com/office/office365/APi/photo-rest-operations

Thanks for your interest in Office 365 REST APIs! 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.

In the mean time, you could use our Exchange Web Services SOAP API to retrieve the user's picture. See here for more info. Let me know if you have any questions or need more info.

Thanks,

Venkat

I think you would lose your time because there is no image property returned bu graph api. I already checked it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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