PHP code example of revenuewire / clients-api-sdk-php
1. Go to this page and download the library: Download revenuewire/clients-api-sdk-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/ */
revenuewire / clients-api-sdk-php example snippets
onfigure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$api_instance = new Swagger\Client\Api\DefaultApi();
$newClient = new \Swagger\Client\Model\NewClient(); // \Swagger\Client\Model\NewClient |
try {
$result = $api_instance->createClient($newClient);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->createClient: ', $e->getMessage(), PHP_EOL;
}