### Install Laravel Calendly via Composer Source: https://github.com/jeffersongoncalves/laravel-calendly/blob/main/README.md Install the package via Composer. ```bash composer require jeffersongoncalves/laravel-calendly ``` -------------------------------- ### Use CalendlyClient Methods Source: https://github.com/jeffersongoncalves/laravel-calendly/blob/main/README.md Usage examples for the CalendlyClient static methods covering users, event types, scheduled events, availability, webhooks, and organization members. All methods return array|null (or bool for deleteWebhook()), returning null/false on network failure or non-2xx response instead of throwing. eventTypes() and events() throw InvalidArgumentException when neither user nor organization is provided. ```php use JeffersonGoncalves\Calendly\CalendlyClient; // Users $me = CalendlyClient::me(); // Event types $eventTypes = CalendlyClient::eventTypes(user: $me['resource']['uri']); $eventType = CalendlyClient::eventType('AAAAAAAAAAAAAAAA'); // Scheduled events $events = CalendlyClient::events(user: $me['resource']['uri'], params: ['status' => 'active']); $event = CalendlyClient::event('AAAAAAAAAAAAAAAA'); CalendlyClient::cancelEvent('AAAAAAAAAAAAAAAA', 'Rescheduling'); $invitees = CalendlyClient::eventInvitees('AAAAAAAAAAAAAAAA'); // Availability $slots = CalendlyClient::availableTimes( eventType: 'https://api.calendly.com/event_types/AAAAAAAAAAAAAAAA', startTime: '2026-09-06T00:00:00Z', endTime: '2026-09-13T00:00:00Z', ); $busy = CalendlyClient::userBusyTimes( user: $me['resource']['uri'], startTime: '2026-09-06T00:00:00Z', endTime: '2026-09-13T00:00:00Z', ); // Webhooks $webhooks = CalendlyClient::webhooks(organization: $me['resource']['current_organization']); CalendlyClient::createWebhook( url: 'https://example.com/webhooks/calendly', events: ['invitee.created', 'invitee.canceled'], organization: $me['resource']['current_organization'], ); CalendlyClient::deleteWebhook('AAAAAAAAAAAAAAAA'); // Organization members $members = CalendlyClient::organizationMembers($me['resource']['current_organization']); ``` -------------------------------- ### Run Static Analysis with Composer Source: https://github.com/jeffersongoncalves/laravel-calendly/blob/main/README.md Run static analysis. ```bash composer analyse ``` -------------------------------- ### Format Code with Composer Source: https://github.com/jeffersongoncalves/laravel-calendly/blob/main/README.md Run code formatting. ```bash composer format ``` -------------------------------- ### Run Tests with Composer Source: https://github.com/jeffersongoncalves/laravel-calendly/blob/main/README.md Run the test suite. ```bash composer test ``` -------------------------------- ### Configure Laravel Calendly (config/calendly.php) Source: https://github.com/jeffersongoncalves/laravel-calendly/blob/main/README.md Configuration options for the package. When 'calendly.token' is null, the client falls back to config('services.calendly.token'). ```php // config/calendly.php return [ 'token' => env('CALENDLY_TOKEN'), 'timeout' => (int) env('CALENDLY_TIMEOUT', 8), ]; ``` -------------------------------- ### Publish Laravel Calendly Config Source: https://github.com/jeffersongoncalves/laravel-calendly/blob/main/README.md Optionally publish the package's config file. ```bash php artisan vendor:publish --tag="laravel-calendly-config" ``` -------------------------------- ### Set CALENDLY_TOKEN in .env Source: https://github.com/jeffersongoncalves/laravel-calendly/blob/main/README.md Add your Calendly Personal Access Token to the .env file. Create the token from your Calendly integrations settings. ```env CALENDLY_TOKEN=eyJra... ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.