无法使用图形中的 OData $expand获取头像Microsoft



我正在尝试使用Microsoft图中的OData$expand获取头像。

当我跑步时

GET https://graph.microsoft.com/v1.0/me?$expand=photo

在图形资源管理器中,我收到此错误:

{
"error": {
"code": "RequestBroker-ParseUri",
"message": "Could not find a property named 'businessPhones' on type 'Microsoft.OutlookServices.User'.",
"innerError": {
"request-id": "cf7937be-169f-41a1-80fb-cf184f0b5a72",
"date": "2017-07-26T22:48:30"
}
}
}

我是否正确使用它?谢谢

不 - 这是不可能的。 如果您尝试同时获取个人资料照片,请尝试使用$batch操作。 请参阅 https://developer.microsoft.com/en-us/graph/docs/concepts/json_batching

希望这有帮助,

最新更新