I use Python to access Gmail via the Gmail-API. I want to make a simple call to download the attachment of an email and for this you have to pass three parameters: ID, message ID and UserID. I have the last two, but where do I find the first? The Doc says that it's the ID of the attachment so I tried the option "show original" in Gmail, but with no success. The API keeps returning the error message "invalid attachment token". Where do I find the attachment ID?
https://developers.google.com/gmail/api/v1/reference/users/messages/attachments/get