zenapply/php-calendly

轻松连接到 Calendly API

1.0.0 2016-04-03 19:19 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:53:05 UTC


README

Latest Version Software License Build Status Scrutinizer Code Quality Code Coverage Dependency Status Total Downloads

此包将使您轻松地通过 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
 */