mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2025-12-26 16:27:25 +01:00
drive_example: Make example compile again. Fixes #134
This commit is contained in:
@@ -11,7 +11,7 @@ use std::path::Path;
|
||||
use hyper::net::HttpsConnector;
|
||||
use hyper_native_tls::NativeTlsClient;
|
||||
|
||||
use google_drive3::Drive;
|
||||
use google_drive3::DriveHub;
|
||||
use yup_oauth2::{
|
||||
read_application_secret, ApplicationSecret, Authenticator, DefaultAuthenticatorDelegate,
|
||||
DiskTokenStorage, FlowType,
|
||||
@@ -37,7 +37,7 @@ fn main() {
|
||||
);
|
||||
let client =
|
||||
hyper::Client::with_connector(HttpsConnector::new(NativeTlsClient::new().unwrap()));
|
||||
let hub = Drive::new(client, authenticator);
|
||||
let hub = DriveHub::new(client, authenticator);
|
||||
|
||||
let (_resp, list_result) = hub
|
||||
.files()
|
||||
|
||||
Reference in New Issue
Block a user