Building consolidated calendar app by retrieving calendars from user in office365

Got to work on this task and I found this link to be helpful: Building Daemon or Service Apps with Office 365 Mail, Calendar, and Contacts APIs (OAuth2 client credential flow) There is another sample codes which allows retrieval of calendars from shared calender: Original source for both of the articles: