PHP code example of crazypanter28 / sabre-laravel-sdk
1. Go to this page and download the library: Download crazypanter28/sabre-laravel-sdk 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/ */
crazypanter28 / sabre-laravel-sdk example snippets
use SabreLaravel\Facades\SabreAuth;
// Get token (cached automatically for 6 days)
$token = SabreAuth::getToken();
// Force refresh token
$token = SabreAuth::refreshToken();
use SabreLaravel\Facades\SabrePassenger;
$passengers = SabrePassenger::list('ABC123');
bash
php artisan vendor:publish --tag=sabre-config