【发布时间】:2017-10-11 11:36:55
【问题描述】:
我在获取用户 OneDrive 的文件/文件夹时遇到以下问题。
击球时
https://graph.microsoft.com/v1.0/users/{user-id}/drive
我在回复中得到了这个:
"quota": {
"deleted": 0,
"remaining": 0,
"total": 0,
"used": 0
}
表示驱动器未被使用或为空。
击球时
https://graph.microsoft.com/v1.0/users/{user-id}/drive/root
我得到了回应 -
"folder": {
"childCount": 21
},
"root": {},
"size": 281236319
这里表示驱动器的根文件夹中有21个文件/文件夹,它们占用了281.23 MB的空间。
现在,点击https://graph.microsoft.com/v1.0/users/{user-id}/drive/root/children
我在响应中得到空向量 -
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('user-id')/drive/root/children",
"value": []
}
驱动器中存在文件。但我无法通过儿童 API 获得它们。 任何帮助理解这 3 个不同的结果并获得响应将不胜感激
谢谢。
【问题讨论】:
标签: rest microsoft-graph-api onedrive children