'Need to read Sharepoint Files/ One Drive files from python code

Tried using 2-3 packages, they all require browser login after giving credentials through the code. Will be running the code on a remote machine so need to avoid the browser login. The file will be shared with the mail ID, Some things i came across :

  • Azure AD app credentials

client secret, app ID- this did not work with O365 API, it asked for browser login.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source