library toerisme-werkt-api-client
PHP client for the Toerisme Werkt API
nascom/toerisme-werkt-api-client
PHP client for the Toerisme Werkt API
- Thursday, July 19, 2018
- by nascom
- Repository
- 5 Watchers
- 0 Stars
- 106 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 16 % Grown
Toerisme Werkt PHP client
Installation
The library is available on packagist., (*1)
$ composer require nascom/toerisme-werkt-api-client
Usage
<?php
use GuzzleHttp\Client;
use Nascom\ToerismeWerktApiClient\Http\ApiClient;
use Nascom\ToerismeWerktApiClient\Request\Tags\ListTagsRequest;
use Nascom\ToerismeWerktApiClient\Response\Tags\ListTagsResponse;
// Instantiate the API client using your credentials and
// a HTTP client.
$client = new ApiClient(
new Client(),
'https://api.toerismewerkt.be',
'your-api-key'
);
// Perform requests by passing a request object to the client.
$request = new ListTagsRequest();
/** @var ListTagsResponse $response */
$response = $client->handle($request);
$tags = $response->getTags();
For a list of all available requests, take a look at the
Request namespace, (*2)
dev-master
9999999-dev
PHP client for the Toerisme Werkt API
Sources
Download
MIT
The Requires
The Development Requires
api
toerisme werkt
dev-feature/serializer
dev-feature/serializer
PHP client for the Toerisme Werkt API
Sources
Download
MIT
The Requires
The Development Requires
api
toerisme werkt
0.1.0
0.1.0.0
PHP client for the Toerisme Werkt API
Sources
Download
MIT
The Requires
The Development Requires
api
toerisme werkt