mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
chore(source): add source at latest version
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
[package]
|
||||
|
||||
name = "google-fitness1-cli"
|
||||
version = "0.3.1+20150527"
|
||||
version = "0.3.2+20150720"
|
||||
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
|
||||
description = "A complete library to interact with fitness (protocol v1)"
|
||||
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/fitness1-cli"
|
||||
@@ -17,9 +17,10 @@ keywords = ["fitness", "google", "cli"]
|
||||
name = "fitness1"
|
||||
|
||||
[dependencies]
|
||||
hyper = ">= 0.6.4"
|
||||
mime = "0.0.12"
|
||||
serde = ">= 0.4.1"
|
||||
hyper = ">= 0.6.8"
|
||||
mime = "0.1.0"
|
||||
serde = ">= 0.5.0"
|
||||
serde_json = "*"
|
||||
yup-oauth2 = "*"
|
||||
strsim = "*"
|
||||
yup-hyper-mock = ">=1.0.0"
|
||||
|
||||
@@ -17,14 +17,14 @@ Everything else about the *fitness* API can be found at the
|
||||
|
||||
You can download the pre-compiled 64bit binaries for the following platforms:
|
||||
|
||||
*  [ubuntu](http://dl.byronimo.de/google.rs/cli/0.3.1/ubuntu/fitness1.tar.gz)
|
||||
*  [osx](http://dl.byronimo.de/google.rs/cli/0.3.1/osx/fitness1.tar.gz)
|
||||
*  [ubuntu](http://dl.byronimo.de/google.rs/cli/0.3.2/ubuntu/fitness1.tar.gz)
|
||||
*  [osx](http://dl.byronimo.de/google.rs/cli/0.3.2/osx/fitness1.tar.gz)
|
||||
|
||||
Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/master/gen/fitness1-cli).
|
||||
|
||||
# Usage
|
||||
|
||||
This documentation was generated from the *fitness* API at revision *20150527*. The CLI is at version *0.3.1*.
|
||||
This documentation was generated from the *fitness* API at revision *20150720*. The CLI is at version *0.3.2*.
|
||||
|
||||
```bash
|
||||
fitness1 [options]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
site_name: fitness v0.3.1+20150527
|
||||
site_name: fitness v0.3.2+20150720
|
||||
site_url: http://byron.github.io/google-apis-rs/google-fitness1-cli
|
||||
site_description: Write integrating applications with bcore
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// COPY OF 'src/rust/cli/cmn.rs'
|
||||
// DO NOT EDIT
|
||||
use oauth2::{ApplicationSecret, ConsoleApplicationSecret, TokenStorage, Token};
|
||||
use serde::json;
|
||||
use serde::json::value::Value;
|
||||
use serde_json as json;
|
||||
use serde_json::value::Value;
|
||||
use mime::Mime;
|
||||
use clap::{App, SubCommand};
|
||||
use strsim;
|
||||
|
||||
@@ -8,6 +8,7 @@ extern crate clap;
|
||||
extern crate yup_oauth2 as oauth2;
|
||||
extern crate yup_hyper_mock as mock;
|
||||
extern crate serde;
|
||||
extern crate serde_json;
|
||||
extern crate hyper;
|
||||
extern crate mime;
|
||||
extern crate strsim;
|
||||
@@ -27,7 +28,7 @@ use std::default::Default;
|
||||
use std::str::FromStr;
|
||||
|
||||
use oauth2::{Authenticator, DefaultAuthenticatorDelegate};
|
||||
use serde::json;
|
||||
use serde_json as json;
|
||||
use clap::ArgMatches;
|
||||
|
||||
enum DoitError {
|
||||
@@ -769,6 +770,9 @@ impl<'n, 'a> Engine<'n, 'a> {
|
||||
Ok(())
|
||||
} else {
|
||||
assert!(err.issues.len() == 0);
|
||||
for scope in self.opt.values_of("url").unwrap_or(Vec::new()).iter() {
|
||||
call = call.add_scope(scope);
|
||||
}
|
||||
let mut ostream = match writer_from_opts(opt.value_of("out")) {
|
||||
Ok(mut f) => f,
|
||||
Err(io_err) => return Err(DoitError::IoError(opt.value_of("out").unwrap_or("-").to_string(), io_err)),
|
||||
@@ -1418,12 +1422,12 @@ fn main() {
|
||||
Some(false)),
|
||||
]),
|
||||
("dataset-aggregate",
|
||||
None,
|
||||
Some(r##"Aggregates data of a certain type or stream into buckets divided by a given type of boundary. Multiple data sets of multiple types and from multiple sources can be aggreated into exactly one bucket type per request."##),
|
||||
"Details at http://byron.github.io/google-apis-rs/google_fitness1_cli/users_dataset-aggregate",
|
||||
vec![
|
||||
(Some(r##"user-id"##),
|
||||
None,
|
||||
None,
|
||||
Some(r##"Aggregate data for the person identified. Use me to indicate the authenticated user. Only me is supported at this time."##),
|
||||
Some(true),
|
||||
Some(false)),
|
||||
|
||||
@@ -1529,7 +1533,7 @@ fn main() {
|
||||
|
||||
let mut app = App::new("fitness1")
|
||||
.author("Sebastian Thiel <byronimo@gmail.com>")
|
||||
.version("0.3.1+20150527")
|
||||
.version("0.3.2+20150720")
|
||||
.about("Google Fit API")
|
||||
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_fitness1_cli")
|
||||
.arg(Arg::with_name("url")
|
||||
@@ -1611,7 +1615,7 @@ fn main() {
|
||||
},
|
||||
DoitError::ApiError(err) => {
|
||||
if debug {
|
||||
writeln!(io::stderr(), "{:?}", err).ok();
|
||||
writeln!(io::stderr(), "{:#?}", err).ok();
|
||||
} else {
|
||||
writeln!(io::stderr(), "{}", err).ok();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user