How to specify the scope of Google API to get the birthday

后端 未结 2 1053
忘了有多久
忘了有多久 2020-11-29 06:55

I am trying to get the birthday from the Google API, but the retrieved data in HWIOAuthBundle do not contain it.

I am wondering if the spec

2条回答
  •  日久生厌
    2020-11-29 07:31

    Normally you will only get birthdays that have public visibility. To get private birthdays you need to use the https://www.googleapis.com/auth/user.birthday.read scope. See documentation for which scopes give you which data https://developers.google.com/people/v1/how-tos/authorizing#profile-scopes.

提交回复
热议问题