我正在编写一个应用程序,将调用各种Microsoft Graph API。这个API调用出现上述错误的原因是什么?
https://graph.microsoft.com/beta/users?$select=id,displayName$filter=accountEnabled eq true
不能发评论,所以我用答案试试:)
你在你的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