piped-rust-sdk/examples/trending.rs

16 lines
342 B
Rust

use piped::PipedClient;
use reqwest::Client;
const INSTANCE: &'static str = "https://pipedapi.kavin.rocks";
#[tokio::main]
async fn main() {
let httpclient = Client::new();
let client = PipedClient::new(&httpclient, INSTANCE);
let streams = client.trending("US".to_string()).await.unwrap();
println!("{:#?}", streams);
}