title: Google App Maker Calendar Sample. getCalendarByName instead of getDefaultCalendar
body: <p>I am new to Google App Maker and am trying to build m own custom version of the Calendar sample was that given. In the example, the code grabs the default calendar by getDefaultCalendar. I have another Calendar that I want to grab (either by name or id). After using getCalendarByName and debugging it, it finds the calendar, however when i use it with getEvents it does not populate in the sample app. </p>
  
  <p>The code below is from the Calendar Sample.</p>
  
  <pre><code>/**
  * Gets Calendar events.
  * @param {Query} query - data query with parameters.
  * @return {Array&lt;Event&gt;} events from Calendar.
  */
  function getEvents_(query) {
  var startDate = query.parameters.StartDate;
  startDate.setHours(0, 0, 0, 0);
  
  var endDate = query.parameters.EndDate;
  endDate.setDate(endDate.getDate() + 1);
  endDate.setHours(0, 0, 0, 0);
  
  if (startDate.getTime() &gt; endDate.getTime()) {
  return [];
  }
  
  var results = [];
  var events = 
  CalendarApp.getDefaultCalendar().getEvents(startDate,endDate);
  
  events.forEach(function(item) {
  var event = app.models.Events.newRecord();
  event.StartDate = item.getStartTime();
  event.EndDate = item.getEndTime();
  event.Title = item.getTitle();
  event.Color = item.getColor();
  results.push(event);
  });
  
  return results;
  }
  </code></pre>