listenbrainz-rs/examples/validate_token.rs

11 lines
228 B
Rust

use listenbrainz::raw::Client;
fn main() {
let token = std::env::args().nth(1).expect("No token provided");
let client = Client::new();
let result = client.validate_token(&token);
println!("{:#?}", result);
}