Usage
Load Service Account
There are two ways to instantiate a service account.
- Point to a file
let service_account = from_file.unwrap;
- Using the
GOOGLE_APPLICATION_CREDENTIALSenvironment variable
let service_account = from_env.unwrap;
Get Access Token
let service_account = from_env.unwrap;
let token = service_account.access_token?;