slowprog / calendly-api
Simple Calendly Library
Installs: 6 382
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 5
Open Issues: 0
Requires
- php: >=7.3
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: ^8.0
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2024-11-05 18:03:35 UTC
README
A simple PHP library for Calendly API. The API's main documentation is available through the API portal.
Installation
To install use composer:
composer require slowprog/calendly-api
Usage
<?php require 'vendor/autoload.php'; use Calendly\CalendlyApi; use Calendly\CalendlyApiException; $calendlyApi = new CalendlyApi('YOUR_API_KEY'); try { $calendlyApi->echo(); $webhook = $calendlyApi->createWebhook('https://some.site', [ CalendlyApi::EVENT_CREATED, CalendlyApi::EVENT_CANCELED, ]); var_dump($webhook['id']); $webhook = $calendlyApi->getWebhook($webhook['id']); var_dump($webhook['data'][0]['attributes']['created_at']); $webhooks = $calendlyApi->getWebhooks(); var_dump(count($webhook['data'])); $calendlyApi->deleteWebhook($webhook['data'][0]['id']); } catch (CalendlyApiException $e) { var_dump($e->getMessage()); }
License
The MIT License (MIT). Please see License File for more information.