Google API范围:电子邮件和https://www.googleapis.com/auth/plus.profile.emails.read之间有什么区别 [英] Google API Scope: What's the difference between email and https://www.googleapis.com/auth/plus.profile.emails.read

查看:101
本文介绍了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 email https://www.googleapis.com/auth/userinfo.email scope has 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电子邮件地址,例如 name@gmail.com .

email gives you access to the authenticated users Google email address e.g. name@gmail.com.

"emails": [
  {
   "value": "name@gmail.com",
   "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": "name@gmail.com",
   "type": "account"
  },
  {
   "value": "name@gmail.com",
   "type": "home"
  },
  {
   "value": "name@example.com",
   "type": "home"
  }
 ]

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

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