piped-rust-sdk/examples/search_channel.rs
Schmiddiii d339785568
Feature search channel (#3)
* Simple search API

Initial support for searching for channels.
Additionally the parsing of the instance url got improved (e.g accept
URLs without protocol).

* Fixed crash with negative video amount

* Implement search suggestion
2021-10-13 19:14:39 +01:00

15 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);
}