I have full access to the resource I would like to connect to the Microsoft.sharepoint.c0m site lists.
I would like to know what is the easiest way to pull or upload the data from sharepoint list in python? I am getting error code 403 with this code:
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,
)
Why am I getting error code 403 ?