mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-13 21:19:05 +01:00
chore(regen-apis): Update examples
This commit is contained in:
@@ -14,6 +14,9 @@ license = "MIT"
|
||||
keywords = ["dfareporting", "google", "protocol", "web", "api"]
|
||||
|
||||
|
||||
[dev-dependencies]
|
||||
hyper-rustls = "^0.6"
|
||||
|
||||
[dependencies]
|
||||
hyper = "^ 0.10"
|
||||
mime = "^ 0.2.0"
|
||||
|
||||
@@ -196,6 +196,7 @@ google-dfareporting2d2 = "*"
|
||||
|
||||
```Rust
|
||||
extern crate hyper;
|
||||
extern crate hyper_rustls;
|
||||
extern crate yup_oauth2 as oauth2;
|
||||
extern crate google_dfareporting2d2 as dfareporting2d2;
|
||||
use dfareporting2d2::{Result, Error};
|
||||
@@ -212,9 +213,9 @@ let secret: ApplicationSecret = Default::default();
|
||||
// what's going on. You probably want to bring in your own `TokenStorage` to persist tokens and
|
||||
// retrieve them from storage.
|
||||
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
|
||||
hyper::Client::new(),
|
||||
hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())),
|
||||
<MemoryStorage as Default>::default(), None);
|
||||
let mut hub = Dfareporting::new(hyper::Client::new(), auth);
|
||||
let mut hub = Dfareporting::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth);
|
||||
// You can configure optional parameters by calling the respective setters at will, and
|
||||
// execute the final call using `doit()`.
|
||||
// Values shown here are possibly random and not representative !
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user