我可以完全访问我想连接到 Microsoft.sharepoint.c0m 站点列表的资源。
我想知道从 python 中的共享点列表中提取或上传数据的最简单方法是什么?我收到此代码的错误代码 403:
import requests
from requests_ntlm import HttpNtlmAuth
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
auth = HttpNtlmAuth('username', 'password')
r = requests.get("https://sharepoint.com/_api/Web/lists/GetByTitle('ListName')/items",
verify=False,
auth=auth,
)
Run Code Online (Sandbox Code Playgroud)
为什么我收到错误代码 403 ?
python authentication sharepoint python-requests sharepoint-online