towa / eventserver-sdk
PHP SDK for the eventserver-api
v1.2.1
2020-04-06 21:22 UTC
Requires
- guzzlehttp/guzzle: ^6.3.0
Requires (Dev)
- nunomaduro/collision: ^4.1.3
- oscarotero/env: ^1.1.0
- phpunit/phpunit: ^9.0.0
- vlucas/phpdotenv: ^4.1.0
- dev-master
- v1.2.1
- v1.2.0
- v1.1.0
- v1.0.0
- dev-dependabot/composer/phpunit/phpunit-9.5.8
- dev-dependabot/composer/nunomaduro/collision-5.6.0
- dev-dependabot/add-v2-config-file
- dev-dependabot/composer/guzzlehttp/guzzle-7.3.0
- dev-dependabot/composer/vlucas/phpdotenv-5.3.0
- dev-dependabot/composer/oscarotero/env-2.1.0
- dev-develop
This package is auto-updated.
Last update: 2024-10-29 04:42:16 UTC
README
Developer SDK for interacting with the Eventserver API
Usage
Events
Basic Request with no options
$eventserver = new Eventserver($token); $response = $eventserver->get(); $events = $response['data']; // events $links = $response['links']; // pagination links $meta = $response['meta']; // meta information
Basic Request with with options
The available options will be documented shortly.
$eventserver = new Eventserver($token); $response = $eventserver ->withOptions([ 'include' => 'location,categories', 'page' => [ 'size' => 10, 'number' => 1, ], ]) ->get(); $events = $response['data']; // events $links = $response['links']; // pagination links $meta = $response['meta']; // meta information
Request with non default endpoint
$eventserver = new Eventserver($token); $response = $eventserver ->withEndpoint('categories') ->get(); $categories = $response['data'];
Changelog
Please see the Changelog for more information.
Testing
▲ composer test
Requirements
.env
-file in the root with a validEVENTSERVER_TOKEN
token
Credits
About Towa
Towa is a digital agency based in Bregenz (Austria), Vienna (Austria) & St. Gallen (Switzerland).
License
The MIT License (MIT). Please read the LICENSE.md for more information.