const response = await fetch(
"https://api.kennelbooker.com/api/v1/bookings",
{
method: "GET",
headers: {
"X-Api-Key": "kb_live_your_api_key",
"Accept": "application/json"
}
}
);
if (!response.ok) {
throw new Error(`Request failed: ${response.status}`);
}
const result = await response.json();