PHP code example of bookingtime / lib-phpsdk-app

1. Go to this page and download the library: Download bookingtime/lib-phpsdk-app library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bookingtime / lib-phpsdk-app example snippets



use bookingtime\phpsdkapp\Sdk;

//create SDK
$sdk=new Sdk(
   '<CLIENT_ID>',
   '<CLIENT_SECRET>',
   ['locale'=>'en','timeout'=>15,'mock'=>FALSE]
);

//load appointment from API
$appointment=$sdk->appointment_show([
   'organizationId'=>'f6xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
   'appointmentId'=>'edxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
]);