Use thecatapi.com.
This commit is contained in:
		
							parent
							
								
									00c68d2a86
								
							
						
					
					
						commit
						a14274a115
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
					@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue