zenapply/php-calendly

Easily Connect to the calendly api

1.0.0 2016-04-03 19:19 UTC

This package is not auto-updated.

Last update: 2024-12-21 20:08:47 UTC


README

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

This package will let you easily register webhooks with the Calendly API

Installation

Install via composer - In the terminal:

composer require zenapply/php-calendly

Usage

Register 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
 */