2017 © Pedro Peláez
 

library drone-php-client

Drone PHP Client

image

gboddin/drone-php-client

Drone PHP Client

  • Monday, September 18, 2017
  • by gboddin
  • Repository
  • 0 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

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)

  • Package version: 0.7.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)

Class Method HTTP request Description
BuildsApi reposOwnerNameBuildsGet GET /repos/{owner}/{name}/builds Get recent builds
BuildsApi reposOwnerNameBuildsNumberGet GET /repos/{owner}/{name}/builds/{number} Get the latest build
BuildsApi reposOwnerNameBuildsNumberPost POST /repos/{owner}/{name}/builds/{number} Restart a build
BuildsApi reposOwnerNameLogsNumberJobDelete DELETE /repos/{owner}/{name}/logs/{number}/{job} Cancel a Job
BuildsApi reposOwnerNameLogsNumberJobGet GET /repos/{owner}/{name}/logs/{number}/{job} Get build logs
ReposApi reposOwnerNameDelete DELETE /repos/{owner}/{name} Delete a repo
ReposApi reposOwnerNameEncryptPost POST /repos/{owner}/{name}/encrypt Encrypt repo secrets
ReposApi reposOwnerNameGet GET /repos/{owner}/{name} Get a repo
ReposApi reposOwnerNamePatch PATCH /repos/{owner}/{name} Updates a repo
ReposApi reposOwnerNamePost POST /repos/{owner}/{name} Activates a repo
UserApi userGet GET /user Gets a user
UserApi userPatch PATCH /user Updates a user
UserApi userReposGet GET /user/repos Get user repos
UsersApi usersGet GET /users Get all users
UsersApi usersLoginDelete DELETE /users/{login} Delete a user
UsersApi usersLoginGet GET /users/{login} Get a user
UsersApi usersLoginPatch PATCH /users/{login} Update a user
UsersApi usersLoginPost POST /users/{login} Create a user

Documentation For Models

Documentation For Authorization

accessToken

  • Type: API key
  • API key parameter name: access_token
  • Location: URL query string

Author

The Versions

18/09 2017

dev-master

9999999-dev https://github.com/gboddin/drone-php-client

Drone PHP Client

  Sources   Download

MIT

The Requires

 

The Development Requires

api php swagger sdk

18/09 2017

0.7.3

0.7.3.0 https://github.com/gboddin/drone-php-client

Drone PHP Client

  Sources   Download

MIT

The Requires

 

The Development Requires

api php swagger sdk