nascom/toerisme-werkt-api-client

PHP client for the Toerisme Werkt API

Installs: 663

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 5

Forks: 1

Open Issues: 0

pkg:composer/nascom/toerisme-werkt-api-client

0.1.0 2017-12-29 15:35 UTC

This package is auto-updated.

Last update: 2025-09-29 02:02:09 UTC


README

Installation

The library is available on packagist.

$ 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