title: google calendar api v3 calendar.events.list and using timeMax,timeMin in javascript
body: <pre><code>var resource = {
      ///  "kind": "calendar#event",
  
      "alwaysIncludeEmail" : "true",
      "singleEvents" : "true",
      "orderBy" : "startTime",
      "timeMax": {
          "dateTime": "2013-10-01T00:00:00+10:00" //maxDate.toISOString()
      },
      "timeMin": {
          "dateTime":  "2013-08-29T00:00:00+10:00" //startDateMin.toISOString()
      }
  };
  
  var calendar_id = new calendarIds();
  
  var request = gapi.client.calendar.events.list({
      'calendarId': calendar_id.source,
      'resource': resource
  });
  
  ....
  
  request.execute(function(resp){
  </code></pre>
  
  <p>this javascript is returning ALL events in the calendar !!!!!</p>
  
  <p>plugging those time values into <a href="https://developers.google.com/google-apps/calendar/v3/reference/events/list" rel="noreferrer">v3 api explorer</a>
  and the correct time range of events return.</p>
  
  <p>so how the freak to get my javascript to do the same ? i tried heaps of
  permutations, whys it so freaking hard this google api stuff.......</p>
  
  <p>need a working example please</p>