Sample code for 30+ languages & platforms
Unicode 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 Unicode C++ Downloads

Unicode C++
#include <CkHttpW.h>

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

    CkHttpW http;

    http.SetRequestHeader(L"Authorization",L"YOUR_REST_KEY");
    const wchar_t *jsonStr = http.quickGetStr(L"https://api2.isbndb.com/book/9780134093413");
    if (http.get_LastMethodSuccess() == false) {
        wprintf(L"%s\n",http.lastErrorText());
        return;
    }

    wprintf(L"Response status code: %d\n",http.get_LastStatus());
    wprintf(L"Response JSON:\n");
    wprintf(L"%s\n",jsonStr);
    }