尝试访问gmail api时发生无效范围错误 [英] Invalid scope error when trying to access gmail api

查看:139
本文介绍了尝试访问gmail api时发生无效范围错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  400。这是一个错误。 

错误:invalid_scope

您无权访问某些范围。您的项目正试图访问需要通过验证过程的范围。 {invalid = [https:// mail.google.com/]}如果您需要使用其中一个范围,请提交验证请求。

这是当我在这个链接中加入教程时遇到的错误:
https://developers.google.com/gmail/api/quickstart/js



在链接中,他们让我通过python访问web服务器,但我使用apache。
因此,在步骤1.f中,授权JavaScript起源:使用链接http:// localhost而不是http:// localhost:8000。什么可能会导致错误?

您可以参考这个螺纹


根据中,公开访问某些用户数据的应用程序必须通过审核。如果您的应用出现访问错误,请使用我们的 OAuth开发人员验证提交请求。 对于个人使用的应用和您正在测试的应用,请加入Google小组未审阅应用程序的高风险访问权限,允许您批准个人和测试帐户的数据访问权限。有关更多信息,请参阅 Google API服务用户数据政策


-in-wordpress-postman-smtp-plugin / =nofollow noreferrer> blog
关于如何解决此错误也可能有帮助。

400. That’s an error.

Error: invalid_scope

You don't have permission to access some scopes. Your project is trying to access scopes that need to go through the verification process. {invalid = [https:// mail.google.com/]} If you need to use one of these scopes, submit a verification request.

This is the error that I am getting when I flowed the tutorial in this link: https://developers.google.com/gmail/api/quickstart/js

In the link they asked me to access webserver via python but I am using apache. So in the step 1.f, Authorized JavaScript origins: am using the link http:// localhost instead of http:// localhost:8000. What might be causing the error??

解决方案

You may refer with this thread.

As per the announcement on May 11, 2017, publicly available applications with access to certain user data must pass review. If you see an access error for your app, submit a request using our OAuth Developer Verification form.

For personal-use apps and those you are testing, join the Google group Risky Access Permissions By Unreviewed Apps, which allows you to approve data access for personal and testing accounts. See the Google API Services User Data Policy for more information.

This blog about how to fix this error might be also helpful.

这篇关于尝试访问gmail api时发生无效范围错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆