Crates.io | schetube |
lib.rs | schetube |
version | 0.1.2 |
source | src |
created_at | 2020-12-18 14:08:18.419644 |
updated_at | 2020-12-19 05:43:10.406796 |
description | A library to fetch upcoming live streams from a YouTube channel. |
homepage | https://github.com/siketyan/schetube |
repository | https://github.com/siketyan/schetube.git |
max_upload_size | |
id | 324340 |
size | 12,985 |
A library to fetch upcoming live streams from a YouTube channel.
[dependencies]
schetube = "0.1"
$ cd ./example
$ cargo run [Channel ID]
📝 List of structs and functions are available at docs.rs .
pub async fn fetch_upcoming_videos(channel_id: &str) -> Result<(Channel, Vec<Video>), Box<dyn Error>>;
pub fn response_to_videos(response: &ApiResponse) -> Option<Vec<Video>>;
pub fn response_to_channel(response: &ApiResponse) -> Option<Channel>;
impl Client {
pub fn new(client: reqwest::Client) -> Self;
pub fn create(name: &str, version: &str) -> Result<Self, Box<dyn Error>>;
pub async fn build() -> Result<Self, Box<dyn Error>>;
pub async fn fetch_upcoming_live_streams(&self, channel_id: &str) -> Result<ApiResponse, Box<dyn Error>>;
}