Use thecatapi.com.
This commit is contained in:
parent
00c68d2a86
commit
a14274a115
|
@ -1,4 +1,9 @@
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
println!("Meow!");
|
let res = reqwest::get("https://api.thecatapi.com/v1/images/search")
|
||||||
|
.await
|
||||||
|
.unwrap();
|
||||||
|
println!("Status: {}", res.status());
|
||||||
|
let body = res.text().await.unwrap();
|
||||||
|
println!("Body: {}", body);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue