a guest Jan 18th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- from O365 import Account
- scopes_graph = protocols.get_scopes_for('message_send')
- credential = ('client_id', 'client_secret')
- account = Account(credentials=credential, scopes=scopes_graph)
- result_url = input('Paste the result url here...')
- #'aqui crea el txt pero no genera el
- m = account.new_message()
- m.subject = 'Testing!'
- m.body = "George Best quote: I've stopped drinking, but only while I'm asleep."
RAW Paste Data