https://github.com/lee-to/php-calendly
https://github.com/lee-to/php-calendly
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lee-to/php-calendly
- Owner: lee-to
- License: mit
- Created: 2020-08-18T15:32:47.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-19T07:42:48.000Z (almost 5 years ago)
- Last Synced: 2024-12-28T11:30:24.049Z (5 months ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Calendly API client for PHP
Calendly API client for PHP
## Installation
Calendly API client for PHP can be installed with [Composer](https://getcomposer.org/). Run this command:
```sh
composer require lee-to/php-calendly
```### Usage.
[Documentation](https://developer.calendly.com)
[Api token](https://calendly.com/integrations)
```php
use CalendlyApi\CalendlyApi;
use CalendlyApi\HttpAdapters\CurlHttpClient;
```### Init.
```php
$calendlyApi = new CalendlyApi($token, new CurlHttpClient);
```### Hooks
#### List all``` php
$calendlyApi->hook()->all()
```#### Get one
``` php
$calendlyApi->hook()->get($id)
```#### Create
``` php
$calendlyApi->hook()->create(["url" => "https://name.com", "events" => ["invitee.created"]])
```#### Delete
``` php
$calendlyApi->hook()->delete($id)
```### User
#### About``` php
$calendlyApi->user()->me()
```#### User Event Types
``` php
$calendlyApi->user()->event_types()
```## Tests
1. [Composer](https://getcomposer.org/) is a prerequisite for running the tests. Install composer globally, then run `composer install` to install required files.
2. Get personal token, then create `tests/CalendlyApiTestCredentials.php` from `tests/CalendlyApiTestCredentials.php.dist` and edit it to add your credentials.
3. The tests can be executed by running this command from the root directory:```bash
$ ./vendor/bin/phpunit
```## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Credits
- [Danil Shutsky](https://github.com/lee-to)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
## Security
If you have found a security issue, please contact the maintainers directly at [[email protected]](mailto:[email protected]).