diff --git a/src/main.rs b/src/main.rs index 79d3e82..d3c6cab 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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); }