Use thecatapi.com.

This commit is contained in:
Lyle Mantooth 2023-05-13 15:15:06 -04:00
parent 00c68d2a86
commit a14274a115
Signed by: IslandUsurper
GPG key ID: 6DB52EAE123A5789

View file

@ -1,4 +1,9 @@
#[tokio::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);
}