小编Tar*_*mar的帖子

How can I save token for reuse in O365 python library?

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

5
推荐指数
1
解决办法
1366
查看次数

标签 统计

python ×1