How to get a GCP Bearer token programmatically with python
gcloud auth print-access-token
gives me a Bearer token that I can use later on; however, this is a shell command. How would I obtain one programmatically via the Google Cloud Python API?
gcloud auth print-access-token
gives me a Bearer token that I can use later on; however, this is a shell command. How would I obtain one programmatically via the Google Cloud Python API?