Calendly API client for PHP
Calendly API client for PHP can be installed with Composer. Run this command:
composer require lee-to/php-calendly
use CalendlyApi\CalendlyApi;
use CalendlyApi\HttpAdapters\CurlHttpClient;
$calendlyApi = new CalendlyApi($token, new CurlHttpClient);
$calendlyApi->hook()->all()
$calendlyApi->hook()->get($id)
$calendlyApi->hook()->create(["url" => "https://name.com", "events" => ["invitee.created"]])
$calendlyApi->hook()->delete($id)
$calendlyApi->user()->me()
$calendlyApi->user()->event_types()
- Composer is a prerequisite for running the tests. Install composer globally, then run
composer install
to install required files. - Get personal token, then create
tests/CalendlyApiTestCredentials.php
fromtests/CalendlyApiTestCredentials.php.dist
and edit it to add your credentials. - The tests can be executed by running this command from the root directory:
$ ./vendor/bin/phpunit
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.
If you have found a security issue, please contact the maintainers directly at leetodev@ya.ru.