2017-06-20 61 views
1

我的客戶正試圖通過OAuth連接到Gmail API您沒有權限訪問某些領域 - 的Gmail的OAuth

  1. 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://www.googleapis.com/auth/gmail.readonly,https://www.googleapis.com/auth/plus.circles.members.read]} If you need to use one of these scopes, submit a verification request.

Learn more

Request Details client_id=809629540741-i1g780rbvhjf8r80rkr3vbeon6d5pq3t.apps.googleusercontent.com

That’s all we know.

有驗證域的鏈接,並與谷歌您的應用程序的整個驗證here

我的申請請求以下範圍:

https://www.googleapis.com/auth/gmail.readonly 
https://www.googleapis.com/auth/plus.login 
https://www.googleapis.com/auth/plus.me 
https://www.googleapis.com/auth/drive.file 
https://www.googleapis.com/auth/drive.appdata 
https://www.googleapis.com/auth/plus.profile.emails.read 

回答

1

我認爲你有錯的範圍,你只能使用有效範圍,谷歌g^ives我們。這可能更接近你要找的東西,但它的Domains api而不是Gmail。

https://www.googleapis.com/auth/plus.circles.read View your circles and the people and pages in them

+0

@DalmTo - 哪個範圍無效?哪一個我應該替換plus.circles.read? –

+0

根據您發送的錯誤消息https://www.googleapis.com/auth/plus.circles.members.read無效 – DaImTo

+0

如果您要求提供gmail.readonly,則存在驗證過程。我不要求plus.circles.members.read。也許plus.circles.members.read == plus.profile.emails.read? –

相關問題