【发布时间】:2025-12-28 07:40:07
【问题描述】:
所以我不确定我哪里出错了,但这里就是这样!
我想通过 MS GraphAPI 在我的测试 Sharepoint 站点上列出文件。这通过文档应该很简单,但它只是没有发生!
我正在使用 GraphAPI 资源管理器 https://developer.microsoft.com/en-us/graph/graph-explorer/preview
然后我可以通过此调用查看我的站点及其共享文件夹
https://graph.microsoft.com/v1.0/sites/MyCompany.sharepoint.com:/sites/burf-test:/drive
我回来了:
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#drives/$entity",
"createdDateTime": "2020-04-19T05:47:58Z",
"description": "",
"id": "b!BWveRisE5UWH2b_vq03PZYmZdMdKpQtFhpIQSacsCowq3ZxYLFsFQKtzuZ4-V1ya",
"lastModifiedDateTime": "2020-04-30T13:50:28Z",
"name": "Documents",
"webUrl": "https://-.sharepoint.com/sites/Burf-Test/Shared%20Documents",
"driveType": "documentLibrary",
"createdBy": {
"user": {
"displayName": "System Account"
}
},
"owner": {
"group": {
"email": "Burf-Test@-.onmicrosoft.com",
"id": "e48afefa-2aa8-4cd5-aad9-62f746a991c2",
"displayName": "Burf-Test Owners"
}
},
"quota": {
"deleted": 0,
"remaining": 0,
"total": 0,
"used": 0
}
}
我找不到列出可以通过我的 Sharepoint 门户 (Burf-Test) 看到的文件的方法? 试过了
- /drive/root/children
- /drive/b!BWveRisE5UWH2b_vq03PZYmZdMdKpQtFhpIQSacsCowq3ZxYLFsFQKtzuZ4-V1ya
- /drives/b!BWveRisE5UWH2b_vq03PZYmZdMdKpQtFhpIQSacsCowq3ZxYLFsFQKtzuZ4-V1ya
- /驱动器/文档
- /列表等
还有更多!
【问题讨论】:
标签: sharepoint microsoft-graph-api