PHP code example of monbillet / api-client

1. Go to this page and download the library: Download monbillet/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/ */

    

monbillet / api-client example snippets


use Monbillet\ApiClient;

$token = ''; // your API key
$cache_path = ''; // path to a writable directory to store the cache
$cache_expire_minutes = 10;
$client = new ApiClient($token, $cache_path, $cache_expire_minutes);

$events = $client->getEvents();
$event_groups = $client->getEventGroups();

$event_id = ''; // the id or unique name of an event
$event = $client->getEvent($event_id);

$group_id = ''; // the id or unique name of a group
$event_group = $client->getGroup($group_id);
composer dump-autoload