LODGEA SDK for php. Check out https://docs.lodgea.io for more information.
PHP 7.3 and later. Should also work with PHP 8.0 but has not been tested.
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
<?php
require_once('/path/to/lodgea-php/vendor/autoload.php');
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = com.lodgea\Configuration::getDefaultConfiguration()->setApiKey('apiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = com.lodgea\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apiKey', 'Bearer');
$apiInstance = new com.lodgea\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$inline_object1 = new \com.lodgea\com.lodgea.model\InlineObject1(); // \com.lodgea\com.lodgea.model\InlineObject1
try {
$result = $apiInstance->availabilitySearchPost($inline_object1);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->availabilitySearchPost: ', $e->getMessage(), PHP_EOL;
}
All URIs are relative to https://api.eu.lodgea.io/v1
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | availabilitySearchPost | POST /availability/search | Search for availability |
DefaultApi | locationSearchPost | POST /location/search | Search for location |
DefaultApi | propertiesGet | GET /properties | List (filtered) properties |
DefaultApi | propertiesPropertyIdAvailabilityGet | GET /properties/{propertyId}/availability | Get a properties availability |
DefaultApi | propertiesPropertyIdGet | GET /properties/{propertyId} | Get a properties details |
- InlineObject
- InlineObject1
- InlineResponse200
- InlineResponse2001
- InlineResponse2001AttractionList
- InlineResponse2001Distance
- InlineResponse2001Geo
- InlineResponse2001GeoLocation
- InlineResponse2001List
- InlineResponse2001LowestPrice
- InlineResponse2001MediaList
- InlineResponse2002
- InlineResponse2002List
- InlineResponse2003
- InlineResponse2003PolicyInfo
- InlineResponse2003PolicyInfoFeePolicyList
- InlineResponse2003PolicyInfoTaxPolicyList
- InlineResponse2003PricingList
- InlineResponse2003ProductList
- InlineResponse2003Property
- InlineResponse2003PropertyAddressList
- InlineResponse2003PropertyAwardList
- InlineResponse2003PropertyCancellationGracePeriod
- InlineResponse2003PropertyCancellationPolicyList
- InlineResponse2003PropertyContactList
- InlineResponse2003PropertyFacilityInfo
- InlineResponse2003PropertyFacilityInfoAmenityList
- InlineResponse2003PropertyFacilityInfoGuestRoomList
- InlineResponse2003PropertyFacilityInfoMediaList
- InlineResponse2003PropertyFacilityInfoMessageList
- InlineResponse2003PropertyFeePolicyList
- InlineResponse2003PropertyGuaranteePolicy
- InlineResponse2003PropertyGuestInfo
- InlineResponse2003PropertyMediaList
- InlineResponse2003PropertyOperationTimeList
- InlineResponse2003PropertyPetsPolicy
- InlineResponse2003PropertyPolicyList
- InlineResponse2003PropertyPropertyInfo
- InlineResponse2003PropertyPropertyInfoAcceptedPaymentList
- InlineResponse2003PropertyPropertyInfoMessageList
- InlineResponse2003PropertyRecordCreated
- InlineResponse2003PropertyRecordModified
- InlineResponse2003PropertyServiceList
- InlineResponse2003PropertyTaxPolicyList
- InlineResponse2003RatePlanList
- InlineResponse2004
- InlineResponse2004AvailabilityList
- InlineResponse2004PricingList
- InlineResponse2004RatePlanList
- InlineResponse200List
- InlineResponse400
- InlineResponse4001
- InlineResponse4001ValidationErrors
- InlineResponse400ValidationErrors
- Type: API key
- API key parameter name: apiKey
- Location: HTTP header
To run the tests, use:
composer install
vendor/bin/phpunit
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.2.0
- Package version:
1.2.0
- Package version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen