How do I use google.oauth2 python library?
How do I use google.oauth2 python library? Question: I’m trying to just make a simple rest call to a secure predict endpoint for a google machine learning project but it can’t find the google.oauth2 module. This is my code: import urllib2 from google.oauth2 import service_account # Constants ENDPOINT_URL = ‘ml.googleapis.com/v1/projects/{project}/models/{model}:predict?access_token=’ SCOPES = [‘https://www.googleapis.com/auth/sqlservice.admin’] SERVICE_ACCOUNT_FILE = …