PHP code example of revenuewire / customer-sessions-sdk-php
1. Go to this page and download the library: Download revenuewire/customer-sessions-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 / customer-sessions-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();
$id = "id_example"; // string |
try {
$result = $api_instance->getSession($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getSession: ', $e->getMessage(), PHP_EOL;
}