Add example for users/{user_list}/recent-listens

This commit is contained in:
Koen Bolhuis 2021-01-14 03:27:05 +01:00
parent fb9c892a3b
commit 89a7d4d661
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
use listenbrainz::Client;
fn main() {
let users: Vec<String> = std::env::args().skip(1).collect();
let users_ref: Vec<&str> = users.iter().map(String::as_str).collect();
let mut client = Client::new();
let result = client.users_recent_listens(&users_ref);
println!("{:#?}", result);
}