我已经使用了带有REST API的Python脚本来从/到SharePoint下载和上传文件。正常工作。但是,由于某些限制,我需要切换到MS Graph API以下载和上传文件。我已经观察到Graph API并未从SharePoint下载所有文件。例如SharePoint文件夹包含228个文件,其中只有200个文件获得下载,最新文件未得到下载。
如何解决?我的文件下载url是
file_download_url = f"https://graph.microsoft.com/v1.0/sites/{site_id}/drives/{drive_id}/root:/{Sharepointfolder}:/children"