PHP code example of brightwrite / brightwrite-php-sdk
1. Go to this page and download the library: Download brightwrite/brightwrite-php-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/ */
brightwrite / brightwrite-php-sdk example snippets
onfigure API key authorization: apiKeyHeader
BrightWrite\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
// BrightWrite\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'BEARER');
$api_instance = new BrightWrite\Api\DefaultApi();
try {
$api_instance->brightwriteControllerStatus();
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->brightwriteControllerStatus: ', $e->getMessage(), "\n";
}