Skip to content

Commit c848716

Browse files
author
scrapebadger-bot
committed
chore: regenerate SDK from OpenAPI spec
1 parent a92267a commit c848716

4 files changed

Lines changed: 601 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ Class | Method | HTTP request | Description
187187
*BookingApi* | [**bookingBookingScraperHealthCheckHead**](docs/Api/BookingApi.md#bookingbookingscraperhealthcheckhead) | **HEAD** /v1/booking/health | Booking scraper health check
188188
*BookingApi* | [**bookingGetPropertyDetail**](docs/Api/BookingApi.md#bookinggetpropertydetail) | **GET** /v1/booking/properties/{country_code}/{slug} | Get property detail
189189
*BookingApi* | [**bookingGetPropertyReviews**](docs/Api/BookingApi.md#bookinggetpropertyreviews) | **GET** /v1/booking/properties/{country_code}/{slug}/reviews | Get property reviews
190+
*BookingApi* | [**bookingGetRoomTypesAndLiveRates**](docs/Api/BookingApi.md#bookinggetroomtypesandliverates) | **GET** /v1/booking/properties/{country_code}/{slug}/rooms | Get room types and live rates
190191
*BookingApi* | [**bookingSearchDestinations**](docs/Api/BookingApi.md#bookingsearchdestinations) | **GET** /v1/booking/destinations | Search destinations
191192
*BookingApi* | [**bookingSearchProperties**](docs/Api/BookingApi.md#bookingsearchproperties) | **GET** /v1/booking/search | Search properties
192193
*ChatGPTApi* | [**chatgptAskChatgptAQuestion**](docs/Api/ChatGPTApi.md#chatgptaskchatgptaquestion) | **GET** /v1/chatgpt/ask | Ask ChatGPT a question

docs/Api/BookingApi.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All URIs are relative to https://scrapebadger.com, except if the operation defin
88
| [**bookingBookingScraperHealthCheckHead()**](BookingApi.md#bookingBookingScraperHealthCheckHead) | **HEAD** /v1/booking/health | Booking scraper health check |
99
| [**bookingGetPropertyDetail()**](BookingApi.md#bookingGetPropertyDetail) | **GET** /v1/booking/properties/{country_code}/{slug} | Get property detail |
1010
| [**bookingGetPropertyReviews()**](BookingApi.md#bookingGetPropertyReviews) | **GET** /v1/booking/properties/{country_code}/{slug}/reviews | Get property reviews |
11+
| [**bookingGetRoomTypesAndLiveRates()**](BookingApi.md#bookingGetRoomTypesAndLiveRates) | **GET** /v1/booking/properties/{country_code}/{slug}/rooms | Get room types and live rates |
1112
| [**bookingSearchDestinations()**](BookingApi.md#bookingSearchDestinations) | **GET** /v1/booking/destinations | Search destinations |
1213
| [**bookingSearchProperties()**](BookingApi.md#bookingSearchProperties) | **GET** /v1/booking/search | Search properties |
1314

@@ -276,6 +277,84 @@ try {
276277
[[Back to Model list]](../../README.md#models)
277278
[[Back to README]](../../README.md)
278279

280+
## `bookingGetRoomTypesAndLiveRates()`
281+
282+
```php
283+
bookingGetRoomTypesAndLiveRates($country_code, $slug, $checkin, $checkout, $adults, $children, $rooms, $currency, $language): mixed
284+
```
285+
286+
Get room types and live rates
287+
288+
Every room type at one property with every rate bookable on it for the given dates — price, price before discount, price per night, discounts and badges — plus per-room facilities, bed layouts, occupancy and photos. /search returns only the cheapest rate per property; this returns the whole table.
289+
290+
### Example
291+
292+
```php
293+
<?php
294+
require_once(__DIR__ . '/vendor/autoload.php');
295+
296+
297+
// Configure API key authorization: ApiKeyAuth
298+
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
299+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
300+
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
301+
302+
303+
$apiInstance = new ScrapeBadger\Api\BookingApi(
304+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
305+
// This is optional, `GuzzleHttp\Client` will be used as default.
306+
new GuzzleHttp\Client(),
307+
$config
308+
);
309+
$country_code = 'country_code_example'; // string | Two-letter country code, e.g. 'it'
310+
$slug = 'slug_example'; // string | Booking page name, e.g. 'hotel-artemide'
311+
$checkin = 'checkin_example'; // string | Check-in date YYYY-MM-DD
312+
$checkout = 'checkout_example'; // string | Check-out date YYYY-MM-DD
313+
$adults = 2; // int
314+
$children = 'children_example'; // string | Comma-separated children ages, e.g. '4,9'
315+
$rooms = 1; // int
316+
$currency = 'currency_example'; // string | ISO currency, e.g. EUR, USD, GBP
317+
$language = 'language_example'; // string | Locale, e.g. en-us, fr, de
318+
319+
try {
320+
$result = $apiInstance->bookingGetRoomTypesAndLiveRates($country_code, $slug, $checkin, $checkout, $adults, $children, $rooms, $currency, $language);
321+
print_r($result);
322+
} catch (Exception $e) {
323+
echo 'Exception when calling BookingApi->bookingGetRoomTypesAndLiveRates: ', $e->getMessage(), PHP_EOL;
324+
}
325+
```
326+
327+
### Parameters
328+
329+
| Name | Type | Description | Notes |
330+
| ------------- | ------------- | ------------- | ------------- |
331+
| **country_code** | **string**| Two-letter country code, e.g. &#39;it&#39; | |
332+
| **slug** | **string**| Booking page name, e.g. &#39;hotel-artemide&#39; | |
333+
| **checkin** | **string**| Check-in date YYYY-MM-DD | |
334+
| **checkout** | **string**| Check-out date YYYY-MM-DD | |
335+
| **adults** | **int**| | [optional] [default to 2] |
336+
| **children** | **string**| Comma-separated children ages, e.g. &#39;4,9&#39; | [optional] |
337+
| **rooms** | **int**| | [optional] [default to 1] |
338+
| **currency** | **string**| ISO currency, e.g. EUR, USD, GBP | [optional] |
339+
| **language** | **string**| Locale, e.g. en-us, fr, de | [optional] |
340+
341+
### Return type
342+
343+
**mixed**
344+
345+
### Authorization
346+
347+
[ApiKeyAuth](../../README.md#ApiKeyAuth)
348+
349+
### HTTP request headers
350+
351+
- **Content-Type**: Not defined
352+
- **Accept**: `application/json`
353+
354+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
355+
[[Back to Model list]](../../README.md#models)
356+
[[Back to README]](../../README.md)
357+
279358
## `bookingSearchDestinations()`
280359

281360
```php

0 commit comments

Comments
 (0)