-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
type: docsImprovement to the documentation for an API.Improvement to the documentation for an API.
Description
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.