Sample code for 30+ languages & platforms
Dart

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

Dart
import 'package:chilkat/chilkat.dart';

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

  final http = CkHttp();

  http.setRequestHeader('Authorization', 'YOUR_REST_KEY');
  final String jsonStr;
  try {
    jsonStr = http.quickGetStr('https://api2.isbndb.com/book/9780134093413');
  } on ChilkatException catch (e) {
    print(e.lastErrorText);
    return;
  }

  print('Response status code: ${http.lastStatus}');
  print('Response JSON:');
  print(jsonStr);
}