【发布时间】:2020-08-25 05:49:26
【问题描述】:
我的客户与我共享了一些包含 5 个文件的 onedrive 文件夹,我想找到驱动器 ID,文件 ID,以便我可以使用 python 脚本下载,脚本参考:Not able to download files from inside folder, OneDrive, Microsoft Graph, Python
我正在尝试以下脚本:
requests.get('https://graph.microsoft.com/v1.0/me/drive/sharedWithMe', headers={'Authorization': 'Bearer ' + Access_Token}).content
requests.get('https://graph.microsoft.com/v1.0/me/drives', headers={'Authorization': 'Bearer ' + Access_Token}).content
但我只获取我的文件详细信息。
【问题讨论】:
标签: python-3.x python-requests azure-active-directory microsoft-graph-api onedrive