Add example for users/{user_list}/recent-listens
This commit is contained in:
parent
fb9c892a3b
commit
89a7d4d661
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue