Category Archives: Storage

Google Cloud Services – How to Use Access Tokens Directly

For whatever reason you can’t use gsutil, gcloud, or a client library, you could request an access token directly. This example uses PHP 5.2 (the PHP client library only works  with PHP 5.3+). Please make sure your instance has access to the correct scopes and that a service account is enabled.
gce-project-access-scope

Related Resources:

  • https://cloud.google.com/compute/docs/metadata?hl=en
  • https://cloud.google.com/compute/docs/authentication

Example Usage of Ruby Client LIbrary for Google Cloud Storage