mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
regen all APIs and validate them
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// DO NOT EDIT
|
||||
use clap::{App, SubCommand};
|
||||
use mime::Mime;
|
||||
use oauth2::{ApplicationSecret, ConsoleApplicationSecret};
|
||||
use crate::oauth2::{ApplicationSecret, ConsoleApplicationSecret};
|
||||
use serde_json as json;
|
||||
use serde_json::value::Value;
|
||||
|
||||
|
||||
@@ -7,13 +7,12 @@ extern crate tokio;
|
||||
|
||||
#[macro_use]
|
||||
extern crate clap;
|
||||
extern crate yup_oauth2 as oauth2;
|
||||
|
||||
use std::env;
|
||||
use std::io::{self, Write};
|
||||
use clap::{App, SubCommand, Arg};
|
||||
|
||||
use google_adsense1d4::{api, Error};
|
||||
use google_adsense1d4::{api, Error, oauth2};
|
||||
|
||||
mod client;
|
||||
|
||||
@@ -2532,9 +2531,9 @@ impl<'n> Engine<'n> {
|
||||
}
|
||||
};
|
||||
|
||||
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
|
||||
let auth = oauth2::InstalledFlowAuthenticator::builder(
|
||||
secret,
|
||||
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
|
||||
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
|
||||
).persist_tokens_to_disk(format!("{}/adsense1d4", config_dir)).build().await.unwrap();
|
||||
|
||||
let client = hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots());
|
||||
@@ -3551,7 +3550,7 @@ async fn main() {
|
||||
|
||||
let mut app = App::new("adsense1d4")
|
||||
.author("Sebastian Thiel <byronimo@gmail.com>")
|
||||
.version("2.0.8+20201002")
|
||||
.version("3.0.0+20201002")
|
||||
.about("Accesses AdSense publishers' inventory and generates performance reports.")
|
||||
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_adsense1d4_cli")
|
||||
.arg(Arg::with_name("url")
|
||||
|
||||
Reference in New Issue
Block a user