$client = GoHighLevel::client($access_token,'2021-04-15');
$client->calendars()->list($locationId, []);
$client->calendars()->slots($calendarId, $startDate, $endDate);
$client->calendars()->update($calendarId, [
//
]);
$client->calendars()->get($calendarId);
$client->calendars()->delete($calendarId);
$client->calendars()->create($locationId, $name, [
//
]);
$groups = $client->calendars()->groups();
$group = $groups->get(string $locationId);
$group = $groups->create([
//
]);
$validate = $groups->validate(string $locationId, string $slug, bool $available);
$delete = $groups->delete(string $groupId);
$delete = $groups->update(string $groupId, [
//
]);
$delete = $groups->disable(string $groupId, bool $isActive)
$eventResource = $client->calendars()->events();
$events = $eventResource->list(string $locationId, array []);
$event = $eventResource->get(string $locationId, string $startTime, string $endTime, [
//
]);
$slots = $eventResource->slots(string $locationId, string $endTime, string $startTime, [
//params
]);
$appointment = $eventResource->editAppointment(string $eventId, [
//params
]);
$appointment = $eventResource->createAppointment(string $calendarId, string $locationId, string $contactId, string $startTime, [
// params
]);
$event = $eventResource->createSlot(string $locationId, string $startTime, string $endTime, [
//params
]);
$slot = $eventResource->editSlot(string $eventId, [
// params
]);
$event = $eventResource->delete(string $eventId);
$calendarResource = $client->calendars()->resources();
$resource = $calendarResource->get(string $id, string $resourceType);
$resource = $calendarResource->update(string $id, string $resourceType, [
// params
]);
$resource = $calendarResource->delete(string $id, string $resourceType);
$resource = $calendarResource->list(string $resourceType, [
//
]);
$resource = $calendarResource->create(string $resourceType, [
//params
]);