GVKun编程网logo

Microsoft Graph Drives 过滤器不适用(winmerge过滤器)

14

本文将分享MicrosoftGraphDrives过滤器不适用的详细内容,并且还将对winmerge过滤器进行详尽解释,此外,我们还将为大家带来关于MicrosoftGraph$top过滤器返回不一致

本文将分享Microsoft Graph Drives 过滤器不适用的详细内容,并且还将对winmerge过滤器进行详尽解释,此外,我们还将为大家带来关于Microsoft Graph $ top过滤器返回不一致的结果、Microsoft Graph $filter 在 /beta/me/chats 请求上返回“无效的过滤器子句”、Microsoft Graph API - /drive/root/children 总是空的,我不明白我做错了什么、Microsoft Graph API - 未收到刷新令牌的相关知识,希望对你有所帮助。

本文目录一览:

Microsoft Graph Drives 过滤器不适用(winmerge过滤器)

Microsoft Graph Drives 过滤器不适用(winmerge过滤器)

不幸的是,$filter 不适用于 Drives 端点。请随时为该功能点赞 - https://microsoftgraph.uservoice.com/forums/920506-microsoft-graph-feature-requests/suggestions/41172841-microsoft-graph-api-odata-support-to-fetch-dri

Microsoft Graph $ top过滤器返回不一致的结果

Microsoft Graph $ top过滤器返回不一致的结果

我可以重现您的问题,这应该是正确的,因为结果中的警报来自不同的提供者,请检查doc:

$top-返回每个安全API的汇总最佳结果 提供者。

例如如果您使用$top=1并且您的情况下有8个提供程序,那么您将获得8个值,它将从每个提供程序中获得一个值。

如果您仅通过$filter指定一个提供程序,则$top=1只会得到一个值,您可以检查提供程序关键字here。

示例:

GET https://graph.microsoft.com/v1.0/security/alerts?$filter=vendorInformation/provider eq 'MCAS'&$top=1&$count=true

enter image description here

Microsoft Graph $filter 在 /beta/me/chats 请求上返回“无效的过滤器子句”

Microsoft Graph $filter 在 /beta/me/chats 请求上返回“无效的过滤器子句”

如何解决Microsoft Graph $filter 在 /beta/me/chats 请求上返回“无效的过滤器子句”?

使用 Graph Explorer 的 GET 请求

https://graph.microsoft.com/beta/me/chats?$expand=members&$filter=members/any(o: o/displayname eq ''Steve Ratcliffe'')

成功,但是 GET 请求

https://graph.microsoft.com/beta/me/chats?$expand=members&$filter=members/any(o: o/email eq ''steve@ratcliffe.com'')

失败并出现错误 400 -“无效的过滤器子句”。尝试按 userId 过滤时会发生同样的错误。

如何使 emailuserId 过滤器对聊天起作用?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

Microsoft Graph API - /drive/root/children 总是空的,我不明白我做错了什么

Microsoft Graph API - /drive/root/children 总是空的,我不明白我做错了什么

如何解决Microsoft Graph API - /drive/root/children 总是空的,我不明白我做错了什么?

我从用户那里获取访​​问令牌,其范围是我需要的 Files.Read,如下所示

stdClass Object
(
[token_type] => Bearer
[scope] => Files.Read Files.Read.All Files.ReadWrite.All Mail.Read Sites.Read.All User.Read profile openid email
[expires_in] => 3599
[ext_expires_in] => 3599
[access_token] => eyJ0eXAiOiJKV1QiLCJub25j // i have shorten this access token
[refresh_token] => 0.AWQA4RhkkXBq2kqvIbqr05RTbr8vC // i have shorten this refresh token
)

我的问题是当我调用 /me/drive/root/children API 时,它给了我如下所示的空结果,

stdClass Object
(
[@odata.context] => https://graph.microsoft.com/v1.0/$Metadata#users(''ae496a8e-f1b1-4e1c-83df-xxxxxxxxxxxx'')/drive/root/children
[value] => Array()
)

在门户中,我已授予 Files.Read Files.Read.All Files.ReadWrite.All 的权限。但随后也得到了空值。我的一个驱动器中有文件。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

Microsoft Graph API - 未收到刷新令牌

Microsoft Graph API - 未收到刷新令牌

我注意到您在代码中定义的 scope 不包含 offline_access,因此它只返回一个具有 Files.ReadWrite 权限的访问令牌。如果您想获取刷新令牌,请将 offline_access 添加到范围。

尝试将 scope 更改为:const scope = "Files.ReadWrite offline_access";

关于Microsoft Graph Drives 过滤器不适用winmerge过滤器的问题就给大家分享到这里,感谢你花时间阅读本站内容,更多关于Microsoft Graph $ top过滤器返回不一致的结果、Microsoft Graph $filter 在 /beta/me/chats 请求上返回“无效的过滤器子句”、Microsoft Graph API - /drive/root/children 总是空的,我不明白我做错了什么、Microsoft Graph API - 未收到刷新令牌等相关知识的信息别忘了在本站进行查找喔。

本文标签: