api - Getting Office 365 Outlook User Photo through REST -
i'm able view photo metadata using :
get https://outlook.office.com/api/v2.0/me/photo
and i'm able correct response :
{ "@odata.context": "https://outlook.office.com/api/v2.0/$metadata#me/photo/$entity", "@odata.id": "https://outlook.office.com/api/v2.0/users('ddfcd489-628b-7d04-b48b-20075df800e5@1717622f-1d94-c0d4-9d74-f907ad6677b4')/photo", "@odata.mediacontenttype": "image/jpeg", "@odata.mediaetag": "\"ba09d118\"", "id": "240x240", "width": 240, "height": 240 }
however null when try query :
get https://outlook.office.com/api/v2.0/me/photo/$value
what might reason?
i not know reason why not work alias "me" if use @odata.id , request value following request
https://outlook.office.com/api/v2.0/users('ddfcd489-628b-7d04-b48b-20075df800e5@1717622f-1d94-c0d4-9d74-f907ad6677b4')/photo/$value
it works.
Comments
Post a Comment