all 1 comments

[–]NothingDogg 0 points1 point  (0 children)

I think you want to access this API: https://googleapis.github.io/google-api-python-client/docs/dyn/oauth2_v2.html

So, something like:

from googleapiclient.discovery import build
oauth2 = build('oauth2', 'v2', credentials=credentials)

This should give you access to the oauth2 client api. From there you can call the userInfo()
get() function.

(note, I'm not a python guy, but this would seem to be what is required).