New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add user_info api in the documentation #1071
Comments
Thanks for suggesting an update to the docs! I've opened PR to add the code you suggested. Please review #1088 if you have a chance. Additionally, I've opened a thread internally to see if we can include a link to the oauth2 docs in our API Library Reference Documentation. The People V1 api also has a people.get() method which has information about the authenticated user. See the python docs here. The following sample code also provides the authenticated user's email address but your sample is more intuitive :).
|
Hi @parthea, #1088 looks good to me. Yup it would be nice to have this documented here.
This might work but this doesn't seem to be a good idea because I would need to request additional |
…thenticated user (#1088) Fixes #1071 🦕 Note: I changed `scopes=['profile', 'email'],` to `scopes=['openid', 'https://www.googleapis.com/auth/userinfo.email', 'https://www.googleapis.com/auth/userinfo.profile'],` in the examples because I received a warning that the scope has changed. > `Warning: Scope has changed from "email profile" to "https://www.googleapis.com/auth/userinfo.email openid https://www.googleapis.com/auth/userinfo.profile".`.
🤖 I have created a release \*beep\* \*boop\* --- ### [1.12.6](https://www.github.com/googleapis/google-api-python-client/compare/v1.12.5...v1.12.6) (2020-11-16) ### Documentation * Change error parsing to check for 'message' ([#1083](https://www.github.com/googleapis/google-api-python-client/issues/1083)) ([a341c5a](https://www.github.com/googleapis/google-api-python-client/commit/a341c5a5e31ba16da109658127b58cb7e5dbeedd)), closes [#1082](https://www.github.com/googleapis/google-api-python-client/issues/1082) * Update oauth docs to include snippet to get email address of authenticated user ([#1088](https://www.github.com/googleapis/google-api-python-client/issues/1088)) ([25fba64](https://www.github.com/googleapis/google-api-python-client/commit/25fba648ea647b62f2a6edc54ae927c1ed381b45)), closes [#1071](https://www.github.com/googleapis/google-api-python-client/issues/1071) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please).
I was able to retrieve user profile of the user using their credentials i.e. accessToken by the following code
But I couldn't find it in the docs here https://github.com/googleapis/google-api-python-client/blob/master/docs/dyn/index.md
The text was updated successfully, but these errors were encountered: