1. Go to this page and download the library: Download zec128/appcenter-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/ */
zec128 / appcenter-api example snippets
onfigure HTTP basic authorization: Basic
$config = ZeC128\AppCenter\Configuration::getDefaultConfiguration()
->setApiKey('X-API-Token', '[APIKEY]');
$apiInstance = new ZeC128\AppCenter\Api\AccountApi(
// 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
);
$owner_name = "owner_name_example"; // string | The name of the owner
$app_name = "app_name_example"; // string | The name of the application
$api_token_id = "api_token_id_example"; // string | The unique ID (UUID) of the api token
try {
$apiInstance->appApiTokensDelete($owner_name, $app_name, $api_token_id);
} catch (Exception $e) {
echo 'Exception when calling AccountApi->appApiTokensDelete: ', $e->getMessage(), PHP_EOL;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.