GithubHelp home page GithubHelp logo

xpl0s1v3 / php-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from checkfront/php-sdk

0.0 2.0 0.0 261 KB

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

Home Page: http://www.checkfront.com/extend/api/

PHP 100.00%

php-sdk's Introduction

Checkfront PHP SDK (v3.0)

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 examples are a good place to start. 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'))
							 )
				);
?>

php-sdk's People

Contributors

jasonmorehouse avatar

Watchers

James Cloos avatar / avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.