Skip to content

Instantly share code, notes, and snippets.

@jdyke
Last active June 1, 2020 21:28
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 jdyke/a55bb166bacf1ce191107d183a6482c1 to your computer and use it in GitHub Desktop.
Save jdyke/a55bb166bacf1ce191107d183a6482c1 to your computer and use it in GitHub Desktop.
create_token
def create_token():
access_token = subprocess.run('gcloud auth print-access-token', shell=True, check=True, stdout=subprocess.PIPE, universal_newlines=True)
token = access_token.stdout
return token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment