Closed
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
Improvement to the documentation for an API.Improvement to the documentation for an API.