piped-rust-sdk/examples/bulk_feed.rs

17 lines
421 B
Rust
Raw Permalink Normal View History

2022-09-18 10:56:08 +00:00
use piped::PipedClient;
use reqwest::Client;
const INSTANCE: &'static str = "https://pipedapi.kavin.rocks";
const CHANNELS: &[&str; 2] = &["UCXuqSBlHAE6Xw-yeJA0Tunw", "UCdBK94H6oZT2Q7l0-b0xmMg"];
#[tokio::main]
async fn main() {
let httpclient = Client::new();
let client = PipedClient::new(&httpclient, INSTANCE);
2023-08-12 11:05:51 +00:00
let videos = client.bulk_feed(CHANNELS).await.unwrap();
2022-09-18 10:56:08 +00:00
println!("{:#?}", videos);
}