#api #yt #youtube3-util

youtube3-util

Utilities for interacting with the YT API

1 unstable release

Uses old Rust 2015

0.1.0 Jul 22, 2017

#3457 in #api

GPL-3.0 license

8KB
122 lines

youtube3-util

Utilities for interacting with the YT API.


lib.rs:

This crate provides a pager that can be used to page through results from the YT API.

Example usage

let pager = ItemPager::new(&hub, Box::new(|hub|
hub.playlist_items()
.list("snippet")
.playlist_id("test")
// minimize the amount of network requests by setting a large page size
.max_results(50)
)).unwrap();

for playlist_item in pager {
println!("Item: {:?}", playlist_item);
}

Dependencies

~9–20MB
~307K SLoC