zenapply / php-calendly
Easily Connect to the calendly api
Installs: 20 315
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 3
Forks: 3
Open Issues: 0
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-11-09 19:34:48 UTC
README
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 */