title: Unable to access calendars in office365 outlook API
body: <p>Building an android application to log in users to their outlook accounts and get their calendar events on their behalf.</p>
  
  <p>We followed this tutorial and integrated this into the android application:
  <a href="https://github.com/Azure-Samples/active-directory-android" rel="nofollow noreferrer">https://github.com/Azure-Samples/active-directory-android</a></p>
  
  <p>We successfully received an access token. now we are testing it with the API call we are interested in - <a href="https://outlook.office.com/api/v2.0/me/calendarview?startdatetime=2016-06-01T00:00:00Z&amp;enddatetime=2016-06-02T00:00:00Z" rel="nofollow noreferrer">https://outlook.office.com/api/v2.0/me/calendarview?startdatetime=2016-06-01T00:00:00Z&amp;enddatetime=2016-06-02T00:00:00Z</a> - for the users added in the same domain - (these are already added to the current tenant). We are getting a unexpected response when testing it out in the oAuth sandbox. PLEASE SEE ATTACHED SCREENSHOT. </p>
  
  <p>What am I doing wrong? why am I not able to call the get calendar events API for the users?</p>
  
  <p><a href="https://i.stack.imgur.com/rcMEh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rcMEh.png" alt="Calling O365 get calendar events REST API fails"></a></p>