PHP
PHP
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 PHP Downloads
<?php
use Chilkat2\Http;
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
$http = new Http();
$http->SetRequestHeader('Authorization', 'YOUR_REST_KEY');
try {
$jsonStr = $http->QuickGetStr('https://api2.isbndb.com/book/9780134093413');
} catch (\Chilkat2\Exception $e) {
echo $e->getMessage(), "\n";
exit;
}
echo 'Response status code: ', $http->LastStatus, "\n";
echo "Response JSON:\n";
echo $jsonStr, "\n";