Deserialize to json
This commit is contained in:
parent
35fa386dd3
commit
48928fed65
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue