2021-01-19 22:45:43 +00:00
|
|
|
use listenbrainz::raw::Client;
|
2021-01-14 01:49:41 +00:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let user_name = std::env::args().nth(1).expect("No username provided");
|
|
|
|
|
2021-01-14 22:48:27 +00:00
|
|
|
let client = Client::new();
|
2021-01-14 01:49:41 +00:00
|
|
|
|
|
|
|
let result = client.stats_user_listening_activity(&user_name, None);
|
|
|
|
println!("{:#?}", result);
|
|
|
|
|
|
|
|
let result = client.stats_user_daily_activity(&user_name, None);
|
|
|
|
println!("{:#?}", result);
|
|
|
|
}
|