Lianja
Lianja
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 Lianja Downloads
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loHttp = createobject("CkHttp")
loHttp.SetRequestHeader("Authorization","YOUR_REST_KEY")
lcJsonStr = loHttp.QuickGetStr("https://api2.isbndb.com/book/9780134093413")
if (loHttp.LastMethodSuccess = .F.) then
? loHttp.LastErrorText
release loHttp
return
endif
? "Response status code: " + str(loHttp.LastStatus)
? "Response JSON:"
? lcJsonStr
release loHttp