Questions tagged [outlook-restapi]

The Outlook REST APIs include the Mail, Calendar, and Contacts APIs in Office 365.

Welcome to the outlook-restapi tag! Please use this tag to find answers, ask questions, and answer questions about using the Outlook REST APIs.

The Outlook REST APIs are comprised of three distinct APIs that provide access to users' data in Office 365:

  • Mail API: Used to manipulate mail and mail folders.
  • Calendar API: Used to manipulate events and calendars.
  • Contacts API: Used to manipulate contacts and contact folders.

Getting Started

Want to explore and play with the APIs? Check out the Office 365 OAuth Sandbox. You can quickly issue queries against your own data, or against a sandboxed environment.

The Outlook Dev Center has getting started guides in a number of different languages. Start from scratch and end with a working app that retrieves messages from the inbox.

Looking for code samples? Check out the Office Dev Center's Code Samples page. PHP, Node.js, Rails, and more!

Looking for more information, or just want to keep abreast of updates to the APIs? Follow the Outlook REST APIs team's blog.

966 questions
0
votes
1 answer

Get events of a specific time range

I'm working with the Office365 Outlook Calendar API. I need to get events of a specific time range. I tried to compare the DateTimeTimeZone values inside of the foreach command, but it seems like it only supports a == operator: if (…
0
votes
1 answer

Office 365 API - Request returned HTTP error 400

I'm trying to follow a tutorial where I pull mail and calendar events from the Office 365 API. I was able to pull mail but when I try to pull calendar events I get back error 400 which, from some Googling, is apparently that one of my headers being…
0
votes
1 answer

How to get a calendar link using Outlook REST API?

I noticed that the Event object (https://msdn.microsoft.com/office/office365/APi/complex-types-for-mail-contacts-calendar#EventResource) contains a property called WebLink which you can use to open that event in the browser. Is there any way to open…
0
votes
2 answers

Outlook API - We received a bad request

I'm following this tutorial exactly and am getting the following message: Sorry, but we’re having trouble signing you in. We received a bad request. Miserably, Microsoft isn't giving me anything other than that message. EDIT: here is the code I'm…
lola_the_coding_girl
  • 843
  • 2
  • 10
  • 22
0
votes
1 answer

Notification Subscribe error - Outlook Mail API

I am trying to subscribe to notifications from Outlook Mail API. However I keep getting a 400 error. Ref: msdn.microsoft.com/en-us/office/office365/api/notify-rest-operations $url = 'outlook.office.com/api/v2.0/me/subscriptions'; $headers = array( …
singularity
  • 99
  • 2
  • 9
0
votes
1 answer

ErrorMissingEmailAddress error in Outlook REST API

I am developing an app to retrieve mail/calendar information. I am using the App model v2.0 OAuth2 and the Outlook REST API. I have a personal Live (...@live.nl) account which can use the outlook.com web interface to view mail/calendar data. When I…
JeroenB
  • 451
  • 4
  • 10
0
votes
2 answers

Access data on outlook.com using Outlook Rest API

As per https://msdn.microsoft.com/office/office365/APi/use-outlook-rest-api#RegAuthAzure , the only option to access data in Outlook.com using REST API is to use v2 app model which is in preview. Is there no other way to access data on…
Marshiya
  • 13
  • 4
0
votes
1 answer

Outlook Notification REST API - Access to OData is disabled

I am attempting to make use of the Outlook Notification REST API as described here (Microsoft Outlook Notifications REST API) but I am getting an error when calling the subscribe REST service. The response I am getting…
Nate32
  • 251
  • 2
  • 5
  • 12
0
votes
0 answers

Subscribes to a listener service of outlook for receive a notifications when calendar events change in Outlook.com

I need to subscribe to Outlook Calendar notifications for getting changes to Outlook on my server. I've read the documentation and my code is mostly working fine but I'm stuck with the listener. For notifications I First, create subscription On…
0
votes
1 answer

Poll for the new additional outlook messages using Outlook Rest API without the notifications subscriptions

I need to poll for the new outlook messages. I do not want to subscribe to the notifications, which needs a Webhook. Is there a Outlook REST API to poll for the new outlook messages without using the notification subscription framework?
Marshiya
  • 13
  • 4
0
votes
1 answer

outlook restapi does not load calendars events for outllok personal account

I have been using outlook rest api's to read/create/update calendar events of outlook account. Followed all the steps https://dev.outlook.com/RestGettingStarted/ It works very well for the subscription account's. But the api does not work to load…
0
votes
1 answer

Constructor of type HttpHandler not found using the Office 365 API

I recently started using the Office 365 API and can now successfully authenticate and get a token. Now I want to query the user's Exchange for meetings. To do this I run the example query from here: var client = new OutlookServicesClient(new…
0
votes
1 answer

Are folder Id's unique in outlook web app folders?

I am using the outlook web app and have many folders in inbox, when I connect using the outlook api, I see that some folders have duplicate Id's. As far as I know the folder Id should be unique for every folder, is that correct? There is no way of…
singularity
  • 99
  • 2
  • 9
0
votes
2 answers

Office365 Unified API, get calendar ID from Events ID

Every Event belongs to a Calendar, so when I receive a webhook from Outlook API management about a calendar event, I expect to also receive the container ID of this Events, but no. I get very little information about this calendar event, but still…
0
votes
1 answer

Is the outlook REST API throttling me?

I have created a basic script which checks for an email in my inbox, and yesterday everything was working fine. But today all i get is a HTTP404 when I run the same code. I suspect that outlook.office365.com might be throttling my requests since I…
aneez
  • 45
  • 5