The Office 365 RESTful API Client Library enables you to work with Calendar, Contact and Mail that uses OAuth2 for authorization.