为什么出现 "解析选择和展开失败 "的错误?

问题描述 投票:1回答:1

我正在编写一个应用程序,将调用各种Microsoft Graph API。这个API调用出现上述错误的原因是什么?

https://graph.microsoft.com/beta/users?$select=id,displayName$filter=accountEnabled eq true
microsoft-graph
1个回答
0
投票

不能发评论,所以我用答案试试:)

你在你的URL中$filter前漏了一个"&",你必须用"& "来连接不同的选项。

用"& "来连接不同的选项。

https://graph.microsoft.com/beta/users?$select=id,displayName&$filter=accountEnabled eq true

顺便说一下,这个调用在 "v1.0 "中是可用的。也许你可以把这个也改一下。

https://graph.microsoft.com/v1.0/users?$select=id,displayName&$filter=accountEnabled eq true
© www.soinside.com 2019 - 2024. All rights reserved.