mirror of
https://github.com/TeamPiped/piped-rust-sdk.git
synced 2024-08-06 19:07:11 +00:00
19 lines
411 B
Rust
19 lines
411 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 playlist = client
|
|
.playlist_from_id("PLQSoWXSpjA38FIQCvwnVNPlGPVA63WTD8".to_string())
|
|
.await
|
|
.unwrap();
|
|
|
|
println!("{:#?}", playlist);
|
|
}
|