Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 79879da

Browse files
committed
fix(methods): decent solution for free methods
Now I just add a 'virtual' resource, which is called 'methods'. The good thing about this is that it works well standalone, or in conjunction with actual resources. Also the system works with it just with minimal changes Fixes #19
1 parent 60d953a commit 79879da

6 files changed

Lines changed: 282 additions & 179 deletions

File tree

gen/youtube3/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Handle the following *Resources* with ease from the central [hub](http://byron.g
2727
* [videos](http://byron.github.io/google-apis-rs/youtube3/struct.Video.html) ([*delete*](http://byron.github.io/google-apis-rs/youtube3/struct.VideoDeleteMethodBuilder.html), [*get rating*](http://byron.github.io/google-apis-rs/youtube3/struct.VideoGetRatingMethodBuilder.html), [*insert*](http://byron.github.io/google-apis-rs/youtube3/struct.VideoInsertMethodBuilder.html), [*list*](http://byron.github.io/google-apis-rs/youtube3/struct.VideoListMethodBuilder.html), [*rate*](http://byron.github.io/google-apis-rs/youtube3/struct.VideoRateMethodBuilder.html) and [*update*](http://byron.github.io/google-apis-rs/youtube3/struct.VideoUpdateMethodBuilder.html))
2828
* watermarks ([*set*](http://byron.github.io/google-apis-rs/youtube3/struct.WatermarkSetMethodBuilder.html) and [*unset*](http://byron.github.io/google-apis-rs/youtube3/struct.WatermarkUnsetMethodBuilder.html))
2929

30-
Everything else about the *YouTube* API can be found at the
30+
Everything else about the *YouTube* *v3* API can be found at the
3131
[official documentation site](https://developers.google.com/youtube/v3).
3232

3333
# Structure of this Library
@@ -118,8 +118,11 @@ let result = hub.live_broadcasts().list("part")
118118

119119
match result {
120120
Result::HttpError(err) => println!("HTTPERROR: {:?}", err),
121+
Result::MissingAPIKey => println!("Missing API Key"),
122+
Result::MissingToken => println!("Missing Token"),
123+
Result::Failure(_) => println!("General Failure (Response doesn't print)"),
121124
Result::FieldClash(clashed_field) => println!("FIELD CLASH: {:?}", clashed_field),
122-
Result::Success(value) => println!("Result Value: {:?}", value),
125+
Result::Success(_) => println!("Success (value doesn't print)"),
123126
}
124127

125128
```

0 commit comments

Comments
 (0)