title: From Google Calendar API v2 to V3 - Javascript
body: <p>I was simply develloping tool for getting event from google calendars in Javascript when i saw that the V2 of the API will be deprecated in less than a year. That clearly ruin my day ^^.</p>
  
  <p>So i try to familiarise with this new API, but there is still something that I don't find.
  How to do the equivalent of the parameter "futureevents=true" with the javascript client of the google calendar API v3 ?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      var apiKey = 'apikey';
      var scopes = 'https://www.googleapis.com/auth/calendar';
  
      function handleClientLoad() {
    gapi.client.setApiKey(apiKey);
    makeApiCall();
      }
  
      function makeApiCall() {
          gapi.client.load('calendar', 'v3', function() {
             var request = gapi.client.calendar.events.list({
                 'calendarId': 'idcalendar@group.calendar.google.com'
              });
          request.execute(function(resp) {
             console.log(resp);
             for (var i = 0; i &lt; resp.items.length; i++) {
                 var title = document.createTextNode(resp.items[i].summary); 
                 var description = document.createTextNode(resp.items[i].description + ' ');
                 var location = document.createTextNode(resp.items[i].location + ' ');
                 var date = document.createTextNode('Start: ' + resp.items[i].start.date + ' End: ' + resp.items[i].end.date);
  
                 var div = document.createElement('div');
                 var h1 = document.createElement('h1');
                 h1.appendChild(title);
                 div.appendChild(location);
                 div.appendChild(description);
                 div.appendChild(h1);
                 var p = document.createElement('p');
                 p.appendChild(date);
                 div.appendChild(p);
                 document.body.appendChild(h1);
                 document.body.appendChild(div);
               }
            });
         }
  &lt;/script&gt;
  &lt;script src="https://apis.google.com/js/client.js?onload=handleClientLoad"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Here is my code, and with this, I get all the events of the calendar, how can i get only the one that didn't happend yet.</p>
  
  <p>Thanks by advance</p>