PHP code example of digitickets / digitickets-php-api-client
1. Go to this page and download the library: Download digitickets/digitickets-php-api-client 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/ */
digitickets / digitickets-php-api-client example snippets
igiTicketsApiClient\ApiClient;
$apiClient = new ApiClient();
$apiClient->setApiKey('your_key_here');
$response = $apiClient->get('branches'); // Returns a PSR ResponseInterface.
// You can get an array of data from the response object with this method:
$branches = $apiClient->parseResponse($response);
print_r($branches);
// Returns:
// Array
// (
// [0] => Array
// (
// [branchID] => 11
// [name] => DigiTickets Demo Branch