I'm getting invalid_grant
error when creating a draft.
Scopes I requested:
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/userinfo.profile
https://www.googleapis.com/auth/contacts.readonly
https://www.google.com/m8/feeds/
https://mail.google.com/
https://www.googleapis.com/auth/gmail.settings.basic
https://www.googleapis.com/auth/calendar
I use python library to interact with Gmail API ( The main problem is that this sometimes works as expected, sometimes it doesn't work and I don't know why. My code look like the one from example here: https://developers.google.com/gmail/api/v1/reference/users/drafts/create