Sample code for 30+ languages & platforms
C++

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 C++ Downloads

C++
#include <CkHttp.h>

void ChilkatSample(void)
    {
    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    CkHttp http;

    http.SetRequestHeader("Authorization","YOUR_REST_KEY");
    const char *jsonStr = http.quickGetStr("https://api2.isbndb.com/book/9780134093413");
    if (http.get_LastMethodSuccess() == false) {
        std::cout << http.lastErrorText() << "\r\n";
        return;
    }

    std::cout << "Response status code: " << http.get_LastStatus() << "\r\n";
    std::cout << "Response JSON:" << "\r\n";
    std::cout << jsonStr << "\r\n";
    }