I am trying to sync google calendar with my website.I am using google client php api. Till now i am able to get all the events from google calendar.Is there a way to get only the updated events from google calendar. Below is the code to get the events from google calendar
$client = new Google_Client();
$client->setApplicationName( $app_name );
$client->setDeveloperKey( $app_key );
$cal = new Google_Service_Calendar( $client );
$calendarId = $app_id;
$params = array(
'singleEvents' => true,
'orderBy' => 'startTime',
);
$events = $cal->events->listEvents($calendarId, $params);
foreach ( $events->getItems() as $event ) {
echo $event->getSummary();
}