Sample code for 30+ languages & platforms
Perl

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

Perl
use strict;
use warnings;
use Chilkat2;

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

my $http = Chilkat2::Http->new;

$http->SetRequestHeader('Authorization', 'YOUR_REST_KEY');
my $jsonStr = $http->QuickGetStr('https://api2.isbndb.com/book/9780134093413');
if (!$http->LastMethodSuccess) {
    print $http->LastErrorText, "\n";
    exit;
}

print 'Response status code: ', $http->LastStatus, "\n";
print "Response JSON:\n";
print $jsonStr, "\n";