React Native
React Native
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 React Native Downloads
import { Http } from '@chilkat/react-native'
async function chilkatExample() {
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
const http = new Http();
http.setRequestHeader('Authorization', 'YOUR_REST_KEY');
let jsonStr: string;
try {
jsonStr = await http.quickGetStrAsync('https://api2.isbndb.com/book/9780134093413');
} catch {
console.log(http.lastErrorText);
return;
}
console.log(`Response status code: ${http.lastStatus}`);
console.log('Response JSON:');
console.log(jsonStr);
}