outlook-restapi

Microsoft Graph: how to get Data from users of an organisation through web app?

扶醉桌前 提交于 2019-12-11 09:14:31
问题 I am building a web application that needs to access the tasks from Outlook tasks of some the users of my organisation. I know this functionality is fairly new to Microsoft Graph according to this: https://developer.microsoft.com/en-us/graph/docs/concepts/changelog#outlook-tasks When I use Graph Explorer I can get all my tasks with this call: https://graph.microsoft.com/beta/me/outlook/tasks But my tasks or the current user's tasks are not what I need. I need to have access to the tasks list

How to get the meeting room resources through MS Graph API?

微笑、不失礼 提交于 2019-12-11 05:34:53
问题 I have been fiddling with the Microsoft Graph API for sometime now in the context of finding a meeting room. While I could retrieve the list of meeting rooms using the following api call /v1.0/me/people?$filter=personType%2fsubclass+eq+%27Room%27 I wonder if I could fetch the attributes associated with the meeting rooms (like meeting room capacity , projector available etc.,) which have been custom added when creating a meeting room. 回答1: The /people method isn't a reliable source for rooms ,

Getting events from specific calendar using office 365 API

天涯浪子 提交于 2019-12-11 02:57:36
问题 I am trying to get events from specific calendar (non default) using Office 365 API. I found this URL from the office 365 API docs. GET https://outlook.office.com/api/{version}/me/calendars/{calendar_id}/calendarview?startDateTime={start_datetime}&endDateTime={end_datetime} Where i replaced {calendar_id} with actual ID which i got from another API call which returns all calendar groups. GET https://outlook.office.com/api/{version}/me/calendargroups After replacing all relevant parameters, i

Building Daemon or Service Apps with Office 365 REST API in Java

纵然是瞬间 提交于 2019-12-11 02:12:20
问题 I am trying to build a batch job to access Office 365 Mail API. Up on checking the documentation (the concept is very clear), I wasn't able to find a code sample written for Java. I've found this but it relies on the java pom file but I would love to use REST API or Graphi API directly if possible. Can someone point me on how to get started with building a Daemon service to access Office 365 REST API without users login ? UPDATE I've the following code to get the token using AADL library

Microsoft Graph API - Out of Office Auto reply

大憨熊 提交于 2019-12-11 00:24:11
问题 There are Microsoft Graph APIs to get Outlook properties such as a profile, meetings, email, etc. but I am interested in setting the "Out Of Office" auto-reply using Microsoft Graph. I have used Graph's findRoom , findMeetingTimes and other endpoints but couldn't able to figure out the API for setting "Out of Office". 来源: https://stackoverflow.com/questions/50797515/microsoft-graph-api-out-of-office-auto-reply

Outlook API to forward email as attachment

本秂侑毒 提交于 2019-12-10 11:15:09
问题 I'm currently developing an Outlook Add-in and trying to add a feature to forward an email as an attachment. Can anyone please advice what the simplest way to accomplish it? I cannot find a single API to do it in Outlook Mail REST API reference. Is there any easier way instead of using the 3 different APIs? CreateForwardDraft UpdateMessages SendDraftMessages 回答1: There is an API - addItemAttachmentAsync which can add an email as an attachment. Currently, the forward functionality you

Set a custom header with Outlook/Office 365 REST

☆樱花仙子☆ 提交于 2019-12-09 18:32:17
问题 I know it is possible to get the headers from an email with this Outlook REST, but is there a way that we can set custom headers as well? I can't seem to find any documentation. 回答1: Try setting the SingleValueExtendedProperties on the message object. You can try using the property id for PS_INTERNET_HEADERS - {00020386-0000-0000-C000-000000000046}. Creating a new message with a custom header might look something like this: POST https://outlook.office.com/api/beta/me/messages Content-Type:

Unable to set isOrganizerOptional parameter, in findMeetingTimes

老子叫甜甜 提交于 2019-12-09 03:08:29
In using Microsoft Graph , I am unable to set the IsOrganizerOptional parameter. This code works: { "timeConstraint": { "timeslots": [ { "start": { "dateTime": "2018-01-11T10:00:00", "timeZone": "Pacific Standard Time" }, "end": { "dateTime": "2018-01-11T11:00:00", "timeZone": "Pacific Standard Time" } } ]...} But, this code: { "isOrganizerOptional": true, "timeConstraint": { "timeslots": [ { "start": { "dateTime": "2018-01-11T10:00:00", "timeZone": "Pacific Standard Time" }, "end": { "dateTime": "2018-01-11T11:00:00", "timeZone": "Pacific Standard Time" } } ]...} ... throws the following

“Status Code: NotFound; Reason: Not Found” when creating subscription to on-premise mailbox

孤者浪人 提交于 2019-12-08 09:54:11
问题 We have a hybrid Exchange deployment. Trying to create a subscription to get updates, creates, deletes on Calendar and Contacts. In Graph Explorer I'm logged in as an Office 365 user that has full access to the On-Premise mailbox I'm trying to access ( user@domain.com ). I'm entering: POST | v1.0 | https://graph.microsoft.com/v1.0/subscriptions Request Body: { "changeType": "updated", "notificationUrl": "https://our.URL/WebHooks/Graph/GraphMessagesHook.php", "resource": "users/user@domain.com

How can i get the outlook free / busy rest api for my own company email exchange?

假装没事ソ 提交于 2019-12-08 09:18:19
问题 I use Microsoft outlook as a client to view my mail . How can i get the detail for particular user free / busy detail of calendar ? How can i see the rest api for this ? I have seen C# code for this and has checked that . Get appointments from coworker via EWS only with "Free / Busy time, subject, location" permission level But i need REST api for this . I have checked this. https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations#FindMeetingTimes How can i implement