composer require runcloudio/php-api-sdk
$client = new \RunCloudIO\PHPApiSDK\Client();
$client->setToken(<Your agency API token</strong>)->send('agency-api' OR 'core-api', <action name>', <URL parameters>, <form data>);
- For action name, please refer valid names in
/docs/index.php
. - URL parameters must be in array form e.g
[1, 2, 3]
, based by required parameters in route with%s
accordingly, for route urls please refer to/docs/index.php
. - Form data must be in associative array with key => value such as
['id' => 1, 'name' => 'Test Name']