GET https://www.googleapis.com /calendar/v3/calendars/calendarId/events
мониторный код
Код: Выделить всё
$d = date('Y-m-d', strtotime('-2 days') ) . 'T00:00:00-00:00';
$url_calendars = 'https://www.googleapis.com/calendar/v3/calendars/' . $calendar_id . '/events';
$url_calendars .= '?timeMin=' . $d;
$url_calendars .= '&singleEvents=false';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url_calendars);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Authorization: Bearer '. $access_token
));
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
$data = json_decode(curl_exec($ch), true);

На этой неделе у меня есть мероприятие, которого нет.
[img]https://i.sstatic.net /KO4wHyGy.png[/img]



Спасибо
Подробнее здесь: https://stackoverflow.com/questions/784 ... lendar-api
Мобильная версия