Xbase++
Xbase++
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 Xbase++ Downloads
LOCAL oHttp
LOCAL cJsonStr
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
oHttp := CreateObject("Chilkat.Http")
oHttp:SetRequestHeader("Authorization", "YOUR_REST_KEY")
cJsonStr := oHttp:QuickGetStr("https://api2.isbndb.com/book/9780134093413")
IF (oHttp:LastMethodSuccess == 0)
? oHttp:LastErrorText
oHttp:destroy()
RETURN
ENDIF
? "Response status code: " + Str(oHttp:LastStatus)
? "Response JSON:"
? cJsonStr
oHttp:destroy()