I am reading and sending mails of my office 365 account using python O365 library to automate some regular tasks. Every time I want to use this API I have to do verification and get a fresh token and this token expires every 60 minutes. SO after some thorough research I found about a method called FileSystemTokenBackend however I'm still unable to save the token. This is how I'm trying to save
token_backend = O365.FileSystemTokenBackend(token_path='G:/Newfolder', token_filename='my_token.txt')
Run Code Online (Sandbox Code Playgroud)
Even after this command, …
python ×1