Sample code for 30+ languages & platforms
Rust

ISBNdb API v2 Get Book Details

See more HTTP Misc Examples

Demonstrates how to send a GET request to the ISBNdb API v2 with Authorization header.

Chilkat Rust Downloads

Rust
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

let http = chilkat::Http::new();

http.set_request_header("Authorization", "YOUR_REST_KEY");
let Ok(json_str) = http.quick_get_str("https://api2.isbndb.com/book/9780134093413") else {
    println!("{}", http.last_error_text());
    return;
};

println!("Response status code: {}", http.last_status());
println!("Response JSON:");
println!("{}", json_str);