PHP code example of plainrouter / sdk
1. Go to this page and download the library: Download plainrouter/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/ */
plainrouter / sdk example snippets
use Plainrouter\Client;
$client = new Client(token: getenv('PLAINROUTER_TOKEN'));
$events = $client->operations->listEvents(25);
$event = $client->events->getEvent('event-id');
$client = new Client(token: getenv('PLAINROUTER_TOKEN'));
$draft = $client->plans->launchPlansCopy(1, 'failed-plan-id');
$example = (new Client())->sandbox->getSandbox();
sh
scripts/check-php-generated.sh