lookyman / rundeck-api
Rundeck API wrapper
Installs: 2 049
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2024-05-04 15:56:27 UTC
README
$configuration = new \Lookyman\Rundeck\Api\Configuration( new \GuzzleHttp\Client(), 'https://rundeck.mydomain.com/api/17', new \Lookyman\Rundeck\Api\Authentication\TokenHeaderAuthentication('apitoken'), new \Lookyman\Rundeck\Api\Format\JsonFormat() ); $client = new \Lookyman\Rundeck\Api\Client($configuration); $client ->project() ->job() ->list('MyProject') ->then(function (\Psr\Http\Message\ResponseInterface $response) { echo (string) $response->getBody(); }) ->wait();