简体   繁体   English

如何通过不以“@gmail.com”结尾的帐户使用 Gmail 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.我有一个由使用 Gmail 界面的企业管理的电子邮件帐户。 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.基本上,我不通过 gmail.com 登录,我的帐户地址也不以 @gmail.com 结尾,但电子邮件本身由 Gmail 管理。

I would like to use Python to access the Gmail API on this account.我想使用 Python 访问此帐户上的 Gmail API。 How would I go about setting that up?我将如何进行设置? The Python Quickstart doesn't mention setting up credentials on an alternative domain. Python 快速入门没有提到在备用域上设置凭据。

It turns out the process is almost no different for an email address managed by gmail and an actual @gmail.com address.事实证明,对于由 gmail 管理的电子邮件地址和实际的 @gmail.com 地址,该过程几乎没有什么不同。 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.正如 ceejayoz 在他的评论中提到的那样,只需通过相关业务设置的任何登录表单登录您的电子邮件后,即可转到开发人员控制台 From there you can set up credentials the same way you would for any gmail account.从那里您可以像设置任何 Gmail 帐户一样设置凭据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM