我在获取用户 OneDrive 的文件/文件夹时遇到以下问题。
击中时
https://graph.microsoft.com/v1.0/users/ https://graph.microsoft.com/v1.0/users/{用户 ID}/驱动器
我在回复中得到这个:
"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": []
}
驱动器中存在文件。但我无法通过 Children API 获取它们。
任何帮助理解这 3 个不同结果并获得答复的帮助将不胜感激
Thanks.