Documentatie API v1

Autentificare: header Authorization: Bearer YOUR_API_KEY

Endpoint-uri

Exemplu curl

curl -H "Authorization: Bearer cb_..." https://booksapi.ro/v1/book/9789731234567

Exemplu PHP

$ch = curl_init('https://booksapi.ro/v1/books?q=Rebreanu');
curl_setopt_array($ch, [
    CURLOPT_HTTPHEADER => ['Authorization: Bearer cb_...'],
    CURLOPT_RETURNTRANSFER => true,
]);
echo curl_exec($ch);

OpenAPI