Mercurial > lbo > hg > async-google-apis
changeset 18:17d4446ae609
Provide better example.
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sat, 17 Oct 2020 18:48:18 +0200 |
parents | 09c6b2d7f1e0 |
children | 1db57f1c1b8e |
files | manual_demo/src/main.rs |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/manual_demo/src/main.rs Sat Oct 17 18:45:01 2020 +0200 +++ b/manual_demo/src/main.rs Sat Oct 17 18:48:18 2020 +0200 @@ -68,6 +68,7 @@ async fn new_upload_file(cl: TlsClient, auth: Authenticator, f: &Path) { let mut cl = drive::FilesService::new(cl, auth); + cl.set_scopes(&["https://www.googleapis.com/auth/drive.file"]); let data = hyper::body::Bytes::from(fs::read(&f).unwrap()); let mut params = drive::FilesCreateParams::default();