0

我可以将用户登录到一个驱动器业务帐户。我还可以获取驱动器详细信息。但是如何获取一个驱动器业务帐户根目录中的文件和文件夹的详细信息?

4

2 回答 2

1

使用 /root/children 路径访问驱动器的详细信息:

https://api.onedrive.com/v1.0/drive/root/children?$select=name
于 2016-04-07T15:40:45.993 回答
1

尝试这个

GET /drive/root/children

https://dev.onedrive.com/items/list.htm

可能的反应看起来像

HTTP/1.1 200 OK
Content-Type: application/json

{
  "value": [
    {"name": "myfile.jpg", "size": 2048, "file": {} },
    {"name": "Documents", "folder": { "childCount": 4} },
    {"name": "Photos", "folder": { "childCount": 203} },
    {"name": "my sheet(1).xlsx", "size": 197 }
  ],
  "@odata.nextLink": "https://..."
}
于 2016-04-21T13:26:10.787 回答