我没有得到使用URL $getUserphoto = 'https://graph.microsoft.com/v1.0/me/photo/$value';
我没有得到用户的照片
我使用REST API使用cURL用户照片。
private static $scopes = array("openid",
"offline_access",
"mail.read",
"User.Read",
"User.Read.All",
"calendars.readwrite",
"contacts.readwrite");
什么是你所得到的错误? –
我没有收到任何错误,只是空白的回应。即使我逃过$符号但没有回应。 $ getUserUrl ='https://graph.microsoft.com/v1.0/me/photo/\$value';如果我使用$ getUserUrl ='https://graph.microsoft.com/v1.0/me/photo';我收到元数据响应。照片就在那里,如果我使用微软浏览器我得到我的照片。 – Nagesh
你可以发布一些更多的代码吗,所以我们可以看看它在做什么?另外,请提供照片$ value响应中的标题和任何正文。 – RasmusW