0
votes

Office 365 APIs suggests that we can access Calendar and Calendar Groups using REST APIs.

I am able to fetch My Calendars data which were created by me. But when I try to hit Other Calendars which was shared with me, I get a null value.

{
   "@odata.context": "https://outlook.office365.com/EWS/OData/$metadata#Users('mmmm.nnnn%40YYYY.COM')/CalendarGroups('AAMk........')/Calendars",
   "value":
   [
   ]
}
1

1 Answers

0
votes

Nijin, If you are using basic auth, you will be able to access the shared calendar events by using url http://outlook.office365.com/ews/odata/Users('[email protected]')/Events

Remember though that this works because you are using basic auth which does not have a concept of consent. It will not work if you use OAUTH, as you dont want an app to be to have access to calendars that others have shared with you.