microsoft-graph-api - 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 的权限。但随后也获得了空值。我的一个驱动器中有文件。
解决方案
推荐阅读
- python - Flask - 通过 GET 请求发送数据
- terminal - 关闭 Zsh shell(或终端)时是否可以调用脚本?
- neo4j - 创建子节点之间的关系
- javascript - 显示 Bootstrap 4 模式,但在按钮内保持 href 工作
- go - 找不到包“rsc.io/quote”
- vue.js - Vuetify - 如何有条件地更改 v-btn 的点击处理程序和文本?
- pyspark - Pyspark:转换/转换为数字类型
- ruby - RSpec 期望调用赛璐珞基类的重写方法
- java - 如何创建具有所有依赖项和属性文件的单个可执行 jar?
- php - php regex - 只有 9 位数字并忽略空格