This package will let you easily register webhooks with the Calendly API
Install via composer - In the terminal:
composer require zenapply/php-calendlyRegister a webhook for Invitee Created
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
]
*/Register a webhook for Invitee Canceled
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
]
*/Unregister a webhook
use Zenapply\Calendly\Calendly;
$c = new Calendly("Your API Token");
$idOfWebhook = 1234;
$response = $c->unregistered($idOfWebhook);
/* When successful it will return:
null
*/
