Search code examples
pythongmailgmail-api

How do I use the Gmail API with a account that doesn't end in "@gmail.com"?


I got an email account that is managed by a business that uses the Gmail interface. Basically, I don't sign in through gmail.com, and my account address doesn't end in @gmail.com, but the email itself is managed by Gmail.

I would like to use Python to access the Gmail API on this account. How would I go about setting that up? The Python Quickstart doesn't mention setting up credentials on an alternative domain.


Solution

  • It turns out the process is almost no different for an email address managed by gmail and an actual @gmail.com address. As ceejayoz mentioned in his comment, just go to the developers console after signing into your email through whatever sign in form the business in question has set up. From there you can set up credentials the same way you would for any gmail account.