本文介绍了Google API范围:电子邮件和https://www.googleapis.com/auth/plus.profile.emails.read之间有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于Google API范围,访问用户的电子邮件 https://www.googleapis.com/auth/userinfo.email 范围已根据 https://developers.google.com/+/api/oauth#弃用电子邮件

For the Google API Scope,access to user's emailhttps://www.googleapis.com/auth/userinfo.email scopehas been deprecated according to https://developers.google.com/+/api/oauth#email

因此,新的作用域是电子邮件",而不是长网址.

So the new scope is "email" instead of the long url.

但是作用域之间有什么区别电子邮件"和" https://www.googleapis.com/auth/plus.profile.emails.read "?

But what is the difference between scopes"email" and "https://www.googleapis.com/auth/plus.profile.emails.read"?

推荐答案

电子邮件使您可以访问经过身份验证的用户的Google电子邮件地址,例如 [email protected] .

email gives you access to the authenticated users Google email address e.g. [email protected].

"emails": [
  {
   "value": "[email protected]",
   "type": "account"
  }
 ]

通过

https://www.googleapis.com/auth/plus.profile.emails.read ,您可以访问其已验证的用户个人资料上的所有公共电子邮件地址.

https://www.googleapis.com/auth/plus.profile.emails.read gives you access to all public email addresses on the users profile that they have verified.

"emails": [
  {
   "value": "[email protected]",
   "type": "account"
  },
  {
   "value": "[email protected]",
   "type": "home"
  },
  {
   "value": "[email protected]",
   "type": "home"
  }
 ]

这篇关于Google API范围:电子邮件和https://www.googleapis.com/auth/plus.profile.emails.read之间有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 17:58