DroneClient
Drone PHP Client, (*1)
This client was generated from the swagger.yml file., (*2)
This PHP package is automatically generated by the Swagger Codegen project:, (*3)
Requirements
PHP 5.5 and later, (*4)
Installation & Usage
Composer
To install the bindings via Composer, run:, (*5)
composer require gboddin/php-drone-client
Tests
To run the unit tests:, (*6)
composer install
./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:, (*7)
setApiKey('access_token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// DroneClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('access_token', 'Bearer');
$api_instance = new DroneClient\Api\BuildsApi();
$owner = "owner_example"; // string | owner of the repository
$name = "name_example"; // string | name of the repository
try {
$result = $api_instance->reposOwnerNameBuildsGet($owner, $name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BuildsApi->reposOwnerNameBuildsGet: ', $e->getMessage(), PHP_EOL;
}
?>
Documentation for API Endpoints
All URIs are relative to http://localhost:8080/api, (*8)
Documentation For Models
Documentation For Authorization
accessToken
-
Type: API key
-
API key parameter name: access_token
-
Location: URL query string
Author