Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add user_info api in the documentation #1071

Copy link
Copy link
Closed
@nishantwrp

Description

@nishantwrp
Issue body actions

I was able to retrieve user profile of the user using their credentials i.e. accessToken by the following code

from googleapiclient.discovery import build

def get_user_email_from_credentials(credentials):
    user_info_service = build('oauth2', 'v2', credentials=credentials)
    user_info = user_info_service.userinfo().get().execute()
    return user_info['email']

But I couldn't find it in the docs here https://github.com/googleapis/google-api-python-client/blob/master/docs/dyn/index.md

Metadata

Metadata

Assignees

Labels

type: docsImprovement to the documentation for an API.Improvement to the documentation for an API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.