outlook-restapi

Receiving ExtensionError when renewing mail subscriptions using Graph API for existing valid subscriptions

与世无争的帅哥 提交于 2019-12-08 08:09:46
问题 We're using the following to renew mail subscriptions using an app-level access token (have been doing so for a while now). PATCH https://graph.microsoft.com/v1.0/{subscriptionId} Lately, this request started failing sporadically, for valid subscriptions, with the following error: ExtensionError - Operation: Update; Exception: [Status Code: NotFound; Reason: Not Found] For example, the following ID failed to renew efea31ea-4ff4-4199-8f68-78ec0462797d even though its expiry is the next day.

Write efficient queries with the OutlookServicesClient

末鹿安然 提交于 2019-12-08 07:29:25
问题 I am using the Office 365 Mail API and my goal is to get the total number of email messages a user sent (1.) and received (2.) today . Todo this, I first created and tried and run some queries in the Office 365 API Playground: https://outlook.office.com/api/v2.0/me/mailfolders/sentitems/messages?$filter=sentdatetime%20ge%202015-12-10T08:00:00.000Z&$select=Subject,CreatedDateTime,ToRecipients https://outlook.office.com/api/v2.0/me/messages?$count=true&$filter=receiveddatetime%20ge%202015-12

Create calendar event using Microsoft Graph: ErrorAccessDenied

风流意气都作罢 提交于 2019-12-08 07:19:11
问题 I've been using curl and the Outlook REST API v1.0 (with basic authentication) to create calendar events in Outlook calendars. Basic authentication is soon being deprecated so I am now trying to migrate to Microsoft Graph v1.0 with OAuth 2. I have got some way down the road but am stuck at "ErrorAccessDenied" when running the POST to create the event. This is what I've done so far: Registered my app (curl) here: https://apps.dev.microsoft.com/#/appList, setting Application Permissions to

Use multiple scopes with the Office 365 API

耗尽温柔 提交于 2019-12-08 06:11:28
问题 I want to use the two scopes https://outlook.office.com/Mail.Read and https://outlook.office.com/calendars.read to read an authenticated users' email and calendar. I followed the official .Net (WPF) tutorial to authenticate the user and obtain a token. It works well as long as my scope is only one of the ones above. As soon as I use both, I don't get back a token when I try to obtain it. That's basically what I do: private static string[] scopes = { "https://outlook.office.com/Mail.Read",

(Beginner) How to call Outlook RESTful APIs in Outlook VSTO Add-In

ε祈祈猫儿з 提交于 2019-12-08 05:00:52
问题 I'm looking to develop an Outlook Add-In, in which I receive a meeting room request and propose another room based upon conditions relating number of participants and size of the other rooms. I'm attempting to do this using a VSTO Add-In in C#. My problem comes in the algorithm to determine the list of rooms and which room is smaller. From research, I can see that Outlook incorporates a number of RESTful APIs (https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations).

Can an MS Graph Bearer Token be used to access the Office REST API?

本秂侑毒 提交于 2019-12-07 20:55:45
问题 We've implemented Authentication in a .Net Core 2.0 app using Microsoft Graph to authenticate against Azure AD. That works fine and we were aiming to use Microsoft Graph for accessing Office 365 data. Unfortunately, on deeper review, we've found that Tasks are currently unsupported via Microsoft Graph and must be instead accessed via the Outlook REST API. Important : APIs under the /beta version in Microsoft Graph are in preview and are subject to change. Use of these APIs in production

Office365 REST API - Creating a calendar event with attachments

天涯浪子 提交于 2019-12-07 16:57:49
问题 I am unable to create a calendar event with attachments using Office365's Rest API. Creating events without attachments is not a problem. Trying to create events with attachments creates the event, but the files I send are not added. The server responds with a 201 response code. I am sending a POST request to: https://graph.microsoft.com/v1.0/me/calendars/$(calendarID)/events I use the following Authorization header: Authorization: Bearer $(tokenString) Request payload: { "start": { "dateTime

Create calendar event using Microsoft Graph: ErrorAccessDenied

浪尽此生 提交于 2019-12-07 15:58:30
I've been using curl and the Outlook REST API v1.0 (with basic authentication) to create calendar events in Outlook calendars. Basic authentication is soon being deprecated so I am now trying to migrate to Microsoft Graph v1.0 with OAuth 2. I have got some way down the road but am stuck at "ErrorAccessDenied" when running the POST to create the event. This is what I've done so far: Registered my app (curl) here: https://apps.dev.microsoft.com/#/appList , setting Application Permissions to Calendars.ReadWrite (and, for good measure, Delegated Permissions to Calendars.ReadWrite as well.) Using

Receiving ExtensionError when renewing mail subscriptions using Graph API for existing valid subscriptions

≡放荡痞女 提交于 2019-12-06 16:01:39
We're using the following to renew mail subscriptions using an app-level access token (have been doing so for a while now). PATCH https://graph.microsoft.com/v1.0/{subscriptionId} Lately, this request started failing sporadically, for valid subscriptions, with the following error: ExtensionError - Operation: Update; Exception: [Status Code: NotFound; Reason: Not Found] For example, the following ID failed to renew efea31ea-4ff4-4199-8f68-78ec0462797d even though its expiry is the next day. For this same mailbox, a new subscription is successfully created after failing to renew the existing one

Can an MS Graph Bearer Token be used to access the Office REST API?

流过昼夜 提交于 2019-12-06 14:14:38
We've implemented Authentication in a .Net Core 2.0 app using Microsoft Graph to authenticate against Azure AD. That works fine and we were aiming to use Microsoft Graph for accessing Office 365 data. Unfortunately, on deeper review, we've found that Tasks are currently unsupported via Microsoft Graph and must be instead accessed via the Outlook REST API . Important : APIs under the /beta version in Microsoft Graph are in preview and are subject to change. Use of these APIs in production applications is not supported. I tried passing the Bearer Token retrieved via Microsoft Graph in the