title: Getting events from specific calendar using office 365 API
body: <p>I am trying to get events from specific calendar (non default) using Office 365 API. I found this URL from the office 365 API docs.</p>
  
  <pre><code>GET https://outlook.office.com/api/{version}/me/calendars/{calendar_id}/calendarview?startDateTime={start_datetime}&amp;endDateTime={end_datetime}
  </code></pre>
  
  <p>Where i replaced {calendar_id} with actual ID which i got from another API call which returns all calendar groups. </p>
  
  <pre><code>GET https://outlook.office.com/api/{version}/me/calendargroups
  </code></pre>
  
  <p>After replacing all relevant parameters, i am getting a HTTP 500 error.</p>
  
  <p>But i can get events for my default calendar with </p>
  
  <pre><code>GET https://outlook.office.com/api/{version}/me/calendarview?startDateTime={start_datetime}&amp;endDateTime={end_datetime}
  </code></pre>
  
  <p>How can i get events from specific (non default) calendar ?</p>
  
  <p>Appreciate your help.</p>