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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -