title: How To Get Google Calendar Events only for a specific date range
body: <p>I'm using OAuth to authenticate with Google Calendar and the PHP Client Library, using the example bellow, I was able to get all events from the "primary" calendar. Is there a way to specify a date range, for example, I'd like to get only events that will appear in future.</p>
  
  <pre><code>$events = $service-&gt;events-&gt;listEvents('primary');
  
  while(true) {
    foreach ($events-&gt;getItems() as $event) {
      echo $event-&gt;getSummary();
    }
    $pageToken = $events-&gt;getNextPageToken();
    if ($pageToken) {
      $optParams = array('pageToken' =&gt; $pageToken);
      $events = $service-&gt;events-&gt;listEvents('primary', $optParams);
    } else {
      break;
    }
  }
  </code></pre>