首页 > 解决方案 > 使用 sharepy 将文件上传到 Sharepoint

问题描述

我试图使用 sharepy 库将文件上传到 Sharepoint 位置但我没有取得任何成功.. 虽然我能够使用 sharepy.get("providing folder link/filename") 下载文件。我们如何使用 sharepy.post 将文件上传到 sharepy 中的文件夹。我尝试了 sharepy.post 但没有成功

我的代码如下:

导入共享

s = sharepy.connect("https://xyz.sharepoint.com",username="用户名",password="密码")

r = s.post(" sharepoint 位置的文件夹链接" + "add(overwrite=true,url=' filename.xlsx ')", "testing,foo,bar")

打印(r)

请建议在 s.post 方法中需要提供哪些参数

标签: pythonsharepoint

解决方案


推荐阅读