gboddin / drone-php-client
Drone PHP Client
0.7.3
2017-09-18 08:12 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
This package is not auto-updated.
Last update: 2025-02-02 03:42:10 UTC
README
Drone PHP Client
This client was generated from the swagger.yml file.
This PHP package is automatically generated by the Swagger Codegen project:
- Package version: 0.7.3
Requirements
PHP 5.5 and later
Installation & Usage
Composer
To install the bindings via Composer, run:
composer require gboddin/php-drone-client
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: accessToken DroneClient\Configuration::getDefaultConfiguration()->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
Documentation For Models
Documentation For Authorization
accessToken
- Type: API key
- API key parameter name: access_token
- Location: URL query string