Skip to content

piksel-nl/Kigo-Pro-API-Client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kigo Pro API Client

https://www.kigoapis.com/pro/v1/swagger/?urls.primaryName=Channel%20Manager%20API%20v2

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/piksel-nl/Kigo-Pro-API-Client.git"
    }
  ],
  "require": {
    "piksel-nl/kigo-pro-api-client": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');



// Configure OAuth2 access token for authorization: oauth2
$config = Piksel\KigoPro\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Piksel\KigoPro\Api\BookingApi(
    // 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
);
$start_date = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | Start Date
$channel_connection_id = 56; // int | Channel Connection ID
$end_date = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | End Date

try {
    $result = $apiInstance->channelsV2BookingsDiffGet($start_date, $channel_connection_id, $end_date);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BookingApi->channelsV2BookingsDiffGet: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://www.kigoapis.com

Class Method HTTP request Description
BookingApi channelsV2BookingsDiffGet GET /channels/v2/bookings/diff Get ID and Date Last Updated of all Bookings that were created/modified within the specified date range
BookingApi channelsV2BookingsIdCancelPut PUT /channels/v2/bookings/{id}/cancel Cancel a Booking
BookingApi channelsV2BookingsIdCreditcardsPost POST /channels/v2/bookings/{id}/creditcards Save and try to authorize/charge a Credit Card for a Booking
BookingApi channelsV2BookingsIdEventsPost POST /channels/v2/bookings/{id}/events Create a Booking Event
BookingApi channelsV2BookingsIdGet GET /channels/v2/bookings/{id} Get a Booking
BookingApi channelsV2BookingsIdPut PUT /channels/v2/bookings/{id} Update a Booking
BookingApi channelsV2BookingsPost POST /channels/v2/bookings Create a new Booking
BookingApi proV1BookingsGet GET /pro/v1/bookings
BookingApi proV1BookingsIdGet GET /pro/v1/bookings/{id}
ChannelConnectionApi channelsV2ConnectionsGet GET /channels/v2/connections Get Channel Connection
ListingApi channelsV2ListingsDiffGet GET /channels/v2/listings/diff Get all the Listings where Price, Availability or Content has changed, after a given time
ListingApi channelsV2ListingsGet GET /channels/v2/listings Get all listings associated to a requested channel
ListingApi channelsV2ListingsIdAvailabilityGet GET /channels/v2/listings/{id}/availability Get Availability Feed
ListingApi channelsV2ListingsIdCheckavailabilityGet GET /channels/v2/listings/{id}/checkavailability Check if a Listing is available
ListingApi channelsV2ListingsIdGet GET /channels/v2/listings/{id} Get a listing
ListingApi channelsV2ListingsIdLospricingCsvGet GET /channels/v2/listings/{id}/lospricing.csv
ListingApi channelsV2ListingsIdRatesGet GET /channels/v2/listings/{id}/rates Get contract-aware Rates Feed
MessagingApi channelsV2MessagingMessagesGet GET /channels/v2/messaging/messages Get Messages
MessagingApi channelsV2MessagingThreadsPost POST /channels/v2/messaging/threads Create a new Thread
MessagingApi channelsV2MessagingThreadsTidMessagesIdPut PUT /channels/v2/messaging/threads/{tid}/messages/{id} Update a Message
MessagingApi channelsV2MessagingThreadsTidMessagesPost POST /channels/v2/messaging/threads/{tid}/messages Create a new Message
MessagingApi channelsV2MessagingThreadsTidPut PUT /channels/v2/messaging/threads/{tid} Update a Thread
PromotionApi channelsV2PromotionsAssignmentGet GET /channels/v2/promotions/assignment Get Promotions with assigned listing ids for active and shared listings on a given channel.
PropertyApi proV1ContentPropertiesGet GET /pro/v1/content/properties
PropertyApi proV1ContentPropertiesIdPropertysummaryGet GET /pro/v1/content/properties/{id}/propertysummary
PropertyApi proV1ContentPropertiesPagedPageNumGet GET /pro/v1/content/properties/paged/{pageNum}
PropertyApi proV1ContentPropertiesPagedPageNumPageSizeGet GET /pro/v1/content/properties/paged/{pageNum}/{pageSize}
PropertyApi proV1ContentPropertiesPost POST /pro/v1/content/properties
PropertyAmenityApi proV1ContentPropertiesAmenitiesGet GET /pro/v1/content/properties/amenities
PropertyAmenityApi proV1ContentPropertiesIdAmenitiesGet GET /pro/v1/content/properties/{id}/amenities
PropertyAmenityApi proV1ContentPropertiesIdAmenitiesPut PUT /pro/v1/content/properties/{id}/amenities
PropertyCheckInPolicyApi proV1ContentPropertiesIdCheckinpolicyGet GET /pro/v1/content/properties/{id}/checkinpolicy
PropertyCheckInPolicyApi proV1ContentPropertiesIdCheckinpolicyPut PUT /pro/v1/content/properties/{id}/checkinpolicy
PropertyDescriptionsApi proV1ContentPropertiesIdDescriptionsGet GET /pro/v1/content/properties/{id}/descriptions
PropertyDescriptionsApi proV1ContentPropertiesIdDescriptionsPut PUT /pro/v1/content/properties/{id}/descriptions
PropertyGeneralInformationApi proV1ContentPropertiesIdAddressGet GET /pro/v1/content/properties/{id}/address
PropertyGeneralInformationApi proV1ContentPropertiesIdAddressPut PUT /pro/v1/content/properties/{id}/address
PropertyGeneralInformationApi proV1ContentPropertiesIdDetailsGet GET /pro/v1/content/properties/{id}/details
PropertyGeneralInformationApi proV1ContentPropertiesIdDetailsPut PUT /pro/v1/content/properties/{id}/details
PropertyHouseRulesApi proV1ContentPropertiesIdHouserulesGet GET /pro/v1/content/properties/{id}/houserules
PropertyHouseRulesApi proV1ContentPropertiesIdHouserulesPut PUT /pro/v1/content/properties/{id}/houserules
PropertyLegalInfoApi proV1ContentPropertiesIdLegalinfoGet GET /pro/v1/content/properties/{id}/legalinfo
PropertyLegalInfoApi proV1ContentPropertiesIdLegalinfoPut PUT /pro/v1/content/properties/{id}/legalinfo
PropertyMediaApi proV1ContentPropertiesIdMediasGet GET /pro/v1/content/properties/{id}/medias
PropertyMediaApi proV1ContentPropertiesIdMediasImagesPost POST /pro/v1/content/properties/{id}/medias/images
PropertyMediaApi proV1ContentPropertiesIdMediasMediaIdDelete DELETE /pro/v1/content/properties/{id}/medias/{mediaId}
PropertyMediaApi proV1ContentPropertiesIdMediasMediaIdPut PUT /pro/v1/content/properties/{id}/medias/{mediaId}
PropertyMediaApi proV1ContentPropertiesMediatagsGet GET /pro/v1/content/properties/mediatags
PropertyRoomApi proV1ContentPropertiesIdRoomsGet GET /pro/v1/content/properties/{id}/rooms
PropertyRoomApi proV1ContentPropertiesIdRoomsPut PUT /pro/v1/content/properties/{id}/rooms
QuoteApi channelsV2QuotesPost POST /channels/v2/quotes Generate a quote given a desired QuoteContext
QuoteApi channelsV2QuotesQuoteGuidBookPost POST /channels/v2/quotes/{quoteGuid}/book Convert a Quote into a Booking
RateApi proV1PropertiesIdRatesGet GET /pro/v1/properties/{id}/rates
RateApi proV1PropertiesIdRatesPost POST /pro/v1/properties/{id}/rates
ReferenceDataApi channelsV2AmenitiesGet GET /channels/v2/amenities Get supported amenities
ReferenceDataApi channelsV2CountriesGet GET /channels/v2/countries Get supported countries
ReferenceDataApi channelsV2MediatagsGet GET /channels/v2/mediatags Get supported tags

Documentation For Models

Documentation For Authorization

oauth2

  • Type: OAuth
  • Flow: application
  • Authorization URL: https://auth.kigo.net/connect/authorize
  • Scopes:
  • cm.api: Kigo Pro - Channel Manager API Access
  • automation.api: Kigo Pro - Automation API Access
  • developer.api: Kigo Pro - Developer API Access
  • pro.api: (deprecated) Kigo Pro API Access

Author

About

PHP Client for Kigo Pro API's

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages