mirror of
https://github.com/TeamPiped/piped-rust-sdk.git
synced 2024-08-14 23:56:06 +00:00
16 lines
342 B
Rust
16 lines
342 B
Rust
|
use piped::PipedClient;
|
||
|
use reqwest::Client;
|
||
|
|
||
|
const INSTANCE: &'static str = "pipedapi.kavin.rocks";
|
||
|
|
||
|
#[tokio::main]
|
||
|
async fn main() {
|
||
|
let httpclient = Client::new();
|
||
|
|
||
|
let client = PipedClient::new(&httpclient, INSTANCE);
|
||
|
|
||
|
let suggestions = client.search_channel("techlore").await.unwrap();
|
||
|
|
||
|
println!("{:#?}", suggestions);
|
||
|
}
|