zenapply / php-calendly
轻松连接到 Calendly API
1.0.0
2016-04-03 19:19 UTC
Requires
- php: ^5.5.9 || ^7.0
- zenapply/php-request: ^1.0
Requires (Dev)
- phpunit/phpunit: ^4.8 || ^5.0
This package is not auto-updated.
Last update: 2024-09-14 18:53:05 UTC
README
此包将使您轻松地通过 Calendly API 注册 webhooks
安装
通过 composer 安装 - 在终端中
composer require zenapply/php-calendly
用法
注册“受邀者创建”的 webhook
use Zenapply\Calendly\Calendly; $c = new Calendly("Your API Token"); $response = $c->registerInviteeCreated("http://foo.com/bar/calendly"); /* When successful it will return: [ "id" => 1234 ] */
注册“受邀者取消”的 webhook
use Zenapply\Calendly\Calendly; $c = new Calendly("Your API Token"); $response = $c->registerInviteeCanceled("http://foo.com/bar/calendly"); /* When successful it will return: [ "id" => 1234 ] */
注销 webhook
use Zenapply\Calendly\Calendly; $c = new Calendly("Your API Token"); $idOfWebhook = 1234; $response = $c->unregistered($idOfWebhook); /* When successful it will return: null */