PHP code example of inserve / pax8-api-php
1. Go to this page and download the library: Download inserve/pax8-api-php 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/ */
inserve / pax8-api-php example snippets
use Inserve\Pax8API\Pax8APIClient;
= $api->authenticate('client.id', 'client.secret');
if (! $accessToken) {
echo 'Authentication failed';
return;
}
$subscriptions = $api->company->list();