-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
32 lines (23 loc) · 787 Bytes
/
index.php
File metadata and controls
32 lines (23 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
// 1. Find userId
// 2. Find calendarId => "Book with Bikash Hutait" calendar
// 3. Search data for specific contact id
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://rest.gohighlevel.com/v1/appointments/?startDate=1670848071000&endDate=1671452871000&userId=4XXTQNc4P1sIQh2mLINF&calendarId=CeDx7eHoH6pzpIxUygkI&includeAll=true',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'Authorization: Bearer <token>'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>