403 error sending email with gmail API (python)
问题 I'm trying to send an email using the Gmail API in python. I think I followed the relevant documentation and youtube vids. I'm running into this error: googleapiclient.errors.HttpError: HttpError 403 when requesting https://www.googleapis.com/gmail/v1/users/me/messages/send?alt=json returned "Insufficient Permission" Here is my script: #!/usr/bin/env python from googleapiclient.discovery import build from httplib2 import Http from oauth2client import file, client, tools from email.mime.text