Deserialize to json

This commit is contained in:
flyingscorpio@clevo 2022-12-02 13:34:18 +01:00
parent 35fa386dd3
commit 48928fed65

View file

@ -1,4 +1,5 @@
use reqwest::Url;
use serde_json::Value;
mod token;
@ -29,7 +30,7 @@ impl ApiClient {
.send()
.await
.unwrap()
.text()
.json::<Value>()
.await
.unwrap();
println!("{:#?}", res);
@ -52,7 +53,7 @@ impl ApiClient {
.send()
.await
.unwrap()
.text()
.json::<Value>()
.await
.unwrap();
println!("{:#?}", res);