verdigado / gruene-api-client
PHP client library for gruene api
0.8.0
2024-08-13 19:49 UTC
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
README
The API documentation can be found at https://api.gruene.de/api
Installation & Usage
Requirements
PHP 7.4 and later. Should also work with PHP 8.0.
Composer
Use with composer
composer require verdigado/gruene-api-client
Getting Started
<?php require_once 'vendor/autoload.php'; use Verdigado\GrueneApiClient\apis\UsersApi; use Verdigado\GrueneApiClient\Configuration; $config = new Configuration(); $config->setApiKey('x-api-key', 'api_key'); $usersApi = new UsersApi(null, $config); try { $user = $usersApi->getUser('10005'); print_r($user->getUsername()); } catch (Exception $e) { echo 'Exception when calling UsersApi->getUser: ', $e->getMessage(), PHP_EOL; }