Google OAuth API to get user's email address?

前端 未结 11 854
栀梦
栀梦 2020-11-29 01:38

I am playing with Google\'s OAuth 2.0 Playground using my own personal Google account, but I cannot seem to recover my Gmail address using the playground.

The scope

11条回答
  •  甜味超标
    2020-11-29 01:46

    As of 2017: use the email scope. See Authorizing API requests.

    This email scope is equivalent to and replaces the https://www.googleapis.com/auth/userinfo.email scope.

提交回复
热议问题