Sample code for 30+ languages & platforms
Lua

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 Lua Downloads

Lua
local chilkat = require("chilkat")

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

local http = chilkat.Http.new()

http:set_request_header("Authorization", "YOUR_REST_KEY")
local jsonStr = http:quick_get_str("https://api2.isbndb.com/book/9780134093413")
if not http.last_method_success then
    print(http.last_error_text)
    return
end

print("Response status code: " .. http.last_status)
print("Response JSON:")
print(jsonStr)