且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Gmail Api返回未经授权的客户端或请求范围

更新时间:2022-06-20 20:45:22

基于此文档,则在设置API作用域时,需要使用开发人员控制台"中的客户端ID作为管理API客户端访问权限"中的客户端名称.您的个人帐户@ gmail.com不能正常使用Google API.您应该以you@your_organisation_domain的格式在Google中拥有组织域帐户.

Based from this documentation, you need to use the client ID from your "Developers Console" as the Client Name in the "Manage API client access" when you're setting your API scopes. Google API does not work as expected with your personal account @gmail.com. You should have organization domain account in Google in format you@your_organisation_domain.

检查这些线程:

  • Google API Python unauthorized_client: Unauthorized client or scope in request
  • Google API OAuth2, Service Account, "error" : "invalid_grant"