Invalid scope error when trying to access gmail api

为君一笑 提交于 2019-12-06 07:18:20

问题


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??


回答1:


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.



来源:https://stackoverflow.com/questions/44363021/invalid-scope-error-when-trying-to-access-gmail-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!