shareplum
shareplum copied to clipboard
"TypeError: 'RequestsCookieJar' object is not callable" when attempting to authenticate
When attempting to use shareplum to pull files from a sharepoint folder I receive this error: "TypeError: 'RequestsCookieJar' object is not callable"
I don't seem to be missing anything in the code, maybe I'm missing something in my libraries?
I've got shareplum 0.5.1 installed. Any help would be greatly appreciated (and apologies if this is the wrong place for this... Stack Overflow had a similar question that has gone unanswered for months).
Code:
`from shareplum import Site from shareplum import Office365 from shareplum.site import Version
authcookie = Office365('https://mysite.sharepoint.com', username='[email protected]', password='mypassword').GetCookies() site = Site('https://mysite.sharepoint.com/sites/PGISalesTeam/', version = Version.v365, auth=authcookie) folder = site.Folder('Shared Documents/General/Market Research/Price Shops') file = folder.get_file('2018_05_Autozone.csv')`
Could you solve this issue?