Skip to content

Checkfront PHP SDK for Online Bookings. API version 2. Rest, OAuth2.

Notifications You must be signed in to change notification settings

vermario/checkfront-php-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Checkfront PHP SDK (v3.0)

This forked version is meant to add composer support, to more easily include this library in a drupal8 module or other modern php application.

I have removed the examples folder.

The Checkfront Booking API allows you to build integrations and custom applications that interact with a remote Checkfront account.

This repository contains the open source PHP SDK that allows you to utilize the above on your website. Except as otherwise noted, the Checkfront PHP SDK is licensed under the Apache Licence, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html)

Updates

  • The 'Cart' example has been given a few quick fixes for v3 API support, using token pair auth.
  • The CheckfrontAPI library now supports connecting to the v3 API, as well as features like token pair authentication
  • New/updated examples are in the works.
  • See our v3 API documentation for more information.

Features

The Checkfront API SDK provides the following functionality:

  • OAuth2 authorization and authentication.
  • OAuth2 token refresh.
  • Token pair authorization.
  • Session handing.
  • Access to Checkfront Objects via GET, POST, PUT and DELETE request.

Usage

The minimal you'll need to have is:

<?
$Checkfront = new Checkfront(
    array(
        'host'=>'your-company.checkfront.com',
        'consumer_key'  => '5010076404ec1809470508',
        'consumer_secret' => 'ba0a5c0c509445024c374fcd264d41e816b02d4e',
        'redirect_uri'=>'oob',
    )
);
?>
<?
/* Get items rates and availbility*/
$Checkfront->get('item',array(
							  'start_date'=>date('Y-m-d'),
							  'end_date'=>date('Y-m-d',strtotime('+3 days'))
							 )
				);
?>

About

Checkfront PHP SDK for Online Bookings. API version 2. Rest, OAuth2.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%