PHP code example of towa / eventserver-sdk

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

    

towa / eventserver-sdk example snippets


$eventserver = new Eventserver($token);

$response = $eventserver->get();

$events = $response['data']; // events
$links = $response['links']; // pagination links
$meta = $response['meta']; // meta information

$eventserver = new Eventserver($token);

$response = $eventserver
    ->withOptions([
        ' ->get();

$events = $response['data']; // events
$links = $response['links']; // pagination links
$meta = $response['meta']; // meta information

$eventserver = new Eventserver($token);

$response = $eventserver
    ->withEndpoint('categories')
    ->get();

$categories = $response['data'];