use genius_rs::Genius;
#[tokio::main]
async fn main() {
let genius = Genius::new(dotenv::var("TOKEN").unwrap());
let response = genius.search("Sia").await;
match response {
Ok(resp) => println!("{:?}", resp),
Err(e) => println!("{:?}", e),
}
}
I was checking the examples listed in the readme, but I couldn't reproduce them since the error says that the response can't be parsed because it's not a valid. The error is the following:
ParseError("error decoding response body: missing field `response` at line 1 column 134")
I was checking the examples listed in the readme, but I couldn't reproduce them since the error says that the response can't be parsed because it's not a valid. The error is the following:
ParseError("error decoding response body: missing field `response` at line 1 column 134")