python - 使用 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 方法中需要提供哪些参数
解决方案
推荐阅读
- python - 如何使用 PDFminer 提取 PDF 页面区域内的文本?
- image - 使用 d3 数据属性将内部 HTML 设置为 img 链接
- bash - 在 Bash 的循环中分配变量
- javascript - 为什么在内部对象上返回正确的 sinon.stub()
- numpy - 多维 numpy.outer 没有展平
- python - 在 Pandas 索引上使用“应用”
- c - 如何释放字符 *
- java - 用几个请求终止Java中的线程?
- elasticsearch - ElasticSearch 无痛脚本 - 除了最终分数之外输出变量值的方法?
- sql - 如何在 JSONB 中使用变量名插入 postgres