Mercurial > lbo > hg > async-google-apis
view example_crates/gcs_example/README.md @ 168:8e1cc803f3cc
fix path for async-google-apis-common in cargo.toml
author | Michael Kefeder <m.kefeder@gmail.com> |
---|---|
date | Thu, 10 Dec 2020 12:19:52 +0100 |
parents | 59ccdfd217b2 |
children |
line wrap: on
line source
# `gcs_example` This example binary can upload/download/list objects in Google Cloud Storage buckets. ## Usage Expects a service account key in the `client_secret.json` file. You can download it from the Cloud console, and it should look roughly like this: ```json { "type": "service_account", "project_id": "project", "private_key_id": "...key id...", "private_key": "...private key...", "client_email": "account@project.iam.gserviceaccount.com", "client_id": "106100510664759551719", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/account@project.iam.gserviceaccount.com" } ``` You can then find out more by running ```bash $ gcs_example --help ``` Run with `RUST_LOG=debug` in order to see an accurate record of HTTP requests being sent and received.