Skip to content

Instantly share code, notes, and snippets.

@cjeon
Created February 9, 2021 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjeon/f060892e3a13f2b8995cc38407f48f92 to your computer and use it in GitHub Desktop.
Save cjeon/f060892e3a13f2b8995cc38407f48f92 to your computer and use it in GitHub Desktop.
from google.oauth2 import service_account
import googleapiclient.discovery
SCOPES = ['https://www.googleapis.com/auth/cloud-platform']
credentials = service_account.Credentials.from_service_account_info(
loads(YOUR_FIREBASE_CREDENTIAL_HERE,
scopes=SCOPES
)
testing = googleapiclient.discovery.build('testing', 'v1', credentials=credentials)
results = googleapiclient.discovery.build('toolresults', 'v1beta3', credentials=credentials)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment