novation/toerisme-werkt-api-client

PHP client for the Toerisme Werkt API

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

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

dev-master 2024-08-21 09:03 UTC

This package is not auto-updated.

Last update: 2026-01-08 14:22:43 UTC


README

Installation

The library is available on packagist.

$ composer require novation/toerisme-werkt-api-client

Usage

<?php

use GuzzleHttp\Client;
use Novation\ToerismeWerktApiClient\Http\ApiClient;
use Novation\ToerismeWerktApiClient\Request\Tags\ListTagsRequest;
use Novation\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();