Get Calendars

 

Obtener todos los calendarios en una ubicación

Request

Security: Bearer Auth

Utiliza el Access Token generado con tipo de usuario Subcuenta o el Token de Integración Privada de la Subcuenta en PowerLeads. Proporciona tu token Bearer en el encabezado Authorization al realizar solicitudes a recursos protegidos.

Example: Authorization: Bearer 123

Query Parameters

groupId string

Group Id

Examples: BqTwX8QFwXzpegMve9EQ
 

showDrafted boolean
Show drafted
Default: true
Examples: false

locationId string required 

Location Id

Examples: ve9EPM428h8vShlRW1KT

Headers

Authorization string required

Access Token

Example: Bearer 9c48df2694a849b6089f9d0d3513efe
Version string required

API Version

Allowed value: 2021-04-15


Request Sample: Shell / cURL

curl --request GET \
--url 'https://services.leadconnectorhq.com/calendars/?locationId=ve9EPM428h8vShlRW1KT' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer 123' \
--header 'Version: 2021-04-15'

Response Example

{
"calendars": [
{
"isActive": true,
"notifications": [
{
"type": "email",
"shouldSendToContact": true,
"shouldSendToGuest": true,
"shouldSendToUser": true,
"shouldSendToSelectedUsers": true,
"selectedUsers": "user1@testemail.com,user2@testemail.com"
}
],
"locationId": "ocQHyuzHvysMo5N5VsXc",
"groupId": "BqTwX8QFwXzpegMve9EQ",
"teamMembers": [
{
"userId": "ocQHyuzHvysMo5N5VsXc",
"priority": 0.5,
"meetingLocationType": "custom",
"meetingLocation": "string",
"isPrimary": true,
"locationConfigurations": [
{
"kind": "custom",
"location": "+14455550132",
"meetingId": "my_conference_id"
}
]
}
],
"eventType": "RoundRobin_OptimizeForAvailability",
"name": "test calendar",
"description": "this is used for testing",
"slug": "test1",
"widgetSlug": "test1",
"calendarType": "round_robin",
"widgetType": "classic",
"eventTitle": "{{contact.name}}",
"eventColor": "#039be5",
"meetingLocation": "string",
"locationConfigurations": [
{
"kind": "custom",
"location": "+14455550132",
"meetingId": "my_conference_id"
}
],
"slotDuration": 30,
"slotDurationUnit": "mins",
"slotInterval": 30,
"slotIntervalUnit": "mins",
"slotBuffer": 0,
"slotBufferUnit": "mins",
"preBuffer": 0,
"preBufferUnit": "mins",
"appoinmentPerSlot": 1,
"appoinmentPerDay": 0,
"allowBookingAfter": 0,
"allowBookingAfterUnit": "days",
"allowBookingFor": 0,
"allowBookingForUnit": "days",
"openHours": [
{
"daysOfTheWeek": [
0
],
"hours": [
{
"openHour": 0,
"openMinute": 0,
"closeHour": 0,
"closeMinute": 0
}
]
}
],
"enableRecurring": false,
"recurring": {
"freq": "DAILY",
"count": 24,
"bookingOption": "skip",
"bookingOverlapDefaultStatus": "confirmed"
},
"formId": "string",
"stickyContact": true,
"isLivePaymentMode": true,
"autoConfirm": true,
"shouldSendAlertEmailsToAssignedMember": true,
"alertEmail": "string",
"googleInvitationEmails": false,
"allowReschedule": true,
"allowCancellation": true,
"shouldAssignContactToTeamMember": true,
"shouldSkipAssigningContactForExisting": true,
"notes": "string",
"pixelId": "string",
"formSubmitType": "ThankYouMessage",
"formSubmitRedirectURL": "string",
"formSubmitThanksMessage": "string",
"availabilityType": 0,
"availabilities": [
{
"date": "2023-09-24T00:00:00.000Z",
"hours": [
{
"openHour": 0,
"openMinute": 0,
"closeHour": 0,
"closeMinute": 0
}
],
"deleted": false
}
],
"guestType": "count_only",
"consentLabel": "string",
"calendarCoverImage": "https://path-to-image.com",
"lookBusyConfig": {
"enabled": true,
"LookBusyPercentage": 0
},
"id": "0TkCdp9PfvLeWKYRRvIz"
}
]
}

 


¿Este artículo fue útil?