none
Need proper documentation for integrating outlook with android to fetch calendar events RRS feed

  • Question

  • Hi,

    I have gone through many tutorials for integrating outlook with android but didn't find any solution.

    Can you please help me with integrating outlook with android for fetching all calendar events

    Thanks and Regards

    Thursday, April 14, 2016 7:36 AM

All replies

  • To fetch the calendar events , you could use Outlook Calendar REST API to get a calendar view defined by a time range, from the user's primary calendar (../me/calendarview) or from a different calendar :

    GET https://outlook.office.com/api/v2.0/me/calendarview?startDateTime={start_datetime}&endDateTime={end_datetime}
    
    GET https://outlook.office.com/api/v2.0/me/calendars/{calendar_id}/calendarview?startDateTime={start_datetime}&endDateTime={end_datetime}


    You could refer to below document for Outlook Calendar REST API reference:

    https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations#Getevents

    There are a lot Office 365 Code Snippets for Android , Check below link , it provides  a repository of simple method examples that access email, calendar events, contacts, and files in Office 365:

    https://github.com/OfficeDev/O365-Android-Snippets

    Friday, April 15, 2016 6:28 AM
  • Hi Nan Yu,

    But for accessing these APIs ,first we have to get access Token and refresh token for that.

    I am unable to get the access token. Can you please tell me any solution for that.

    Thanks,

    Shweta

    Friday, April 15, 2016 7:47 AM
  • Hi ,

    In order to call the Mail API, the app requires an access token from Azure Active Directory. In order to do that, the app implements the Authorization Grant Flow.  Please click here  for detail steps.

    Friday, April 15, 2016 9:49 AM
  • Hi,

    Do we need to implement the Authorization grant flow for calling Calendar APIs also.


    Friday, April 15, 2016 10:06 AM
  • Hi,

    Do we need to implement the Authorization grant flow for calling Calendar APIs also.


    Yes .
    Monday, April 18, 2016 9:15 AM
  • Hi,

    But i have tried many times to implement the authorization grant flow But fails to get the access token. Any idea on this??

    Monday, April 18, 2016 9:18 AM
  • Have you checked this article i mentioned above which includes detail steps .

    And what is your error message ?


    Tuesday, April 19, 2016 7:42 AM
  • i am getting "There's a temporary problem with the service.Please try again. If you continue to get this message,try again later." as error message.

    instead of getting authorization code i am redirected to the screen containing this messsage.

    Tuesday, April 19, 2016 9:46 AM