I am using the sharepy
and logging
to connect the sharepoint. I have used the bellow code to connect
username ='testuser'
pwd = 'test@123'
SPUrl = "https://mydomain.sharepoint.com"
if os.path.isfile("sp-session.pkl"):
s = sharepy.load()
else:
s = sharepy.connect(SPUrl,username,pwd)
s.save()
While I am passing the values into the connect function it is throwing the following error
AttributeError: 'SharePointSession' object has no attribute 'cookie'
Suppose, If I didn't pass the value as a argument that time in the terminal it will ask for the username and password after typing the it on the terminal it is working fine.
But how can I make it problematically?
from How to login the sharepoint by passing the username and password?
No comments:
Post a Comment