towa / eventserver-sdk
eventserver-api 的 PHP SDK
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-08-29 04:14:45 UTC
README
与 Eventserver API 交互的开发者 SDK
用法
事件
无选项的基本请求
$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([ 'include' => 'location,categories', 'page' => [ 'size' => 10, 'number' => 1, ], ]) ->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'];
变更日志
有关更多信息,请参阅 变更日志。
测试
▲ composer test
需求
.env
文件在根目录中,包含有效的EVENTSERVER_TOKEN
令牌
鸣谢
关于 Towa
Towa 是一家总部位于奥地利布雷根茨、维也纳和瑞士圣加伦的数字营销公司。
许可证
MIT 许可证 (MIT)。有关更多信息,请参阅 LICENSE.md。