PHP code example of verdigado / gruene-api-client
1. Go to this page and download the library: Download verdigado/gruene-api-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
verdigado / gruene-api-client example snippets
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;
}