listenbrainz-rs/examples/validate_token.rs

11 lines
227 B
Rust
Raw Normal View History

2021-01-14 01:49:41 +00:00
use listenbrainz::Client;
fn main() {
let token = std::env::args().nth(1).expect("No token provided");
let mut client = Client::new();
let result = client.validate_token(&token);
println!("{:#?}", result);
}