view example_crates/drive_example/README.md @ 223:54fbd7bd5217

add minimal calendar:v3 example
author Daniel Boline <ddboline@gmail.com>
date Sun, 28 Feb 2021 11:43:04 -0500
parents 59ccdfd217b2
children
line wrap: on
line source

# `drive_example`

List your Google Drive root directory, or upload a file.

```shell
$ cargo run
# Lists all objects in your root folder of Drive.
...
$ cargo run -- ~/some_file.txt
# Uploads the given file to your root folder, and prints the involved File
# objects and the used request parameters.
...
```

Please note that you need a client secret to run this binary. Download it from
[Developer Console](https://console.developers.google.com) and place it into the
file `client_secret.json` in your working directory so that `drive_example` can
find it.

Run with `RUST_LOG=debug` in order to see an accurate record of HTTP requests
being sent and received.