PHP code example of icukcomputingservices / php-broadband-api
1. Go to this page and download the library: Download icukcomputingservices/php-broadband-api 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/ */
icukcomputingservices / php-broadband-api example snippets
Configure OAuth2 access token for authorization: oauth2
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\AdminWebhooksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$api_platform = 'api_platform_example'; // string | The API provides access to two separate platforms: test and live. The test platform allows you to experiment with the API without incurring charges or affecting customer orders. The live platform allows you to make real world changes.
try {
$apiInstance->webhooksPingGet($api_platform);
} catch (Exception $e) {
echo 'Exception when calling AdminWebhooksApi->webhooksPingGet: ', $e->getMessage(), PHP_EOL;
}