outlook-restapi

OAuth grant flow - tokens expiration

为君一笑 提交于 2019-12-01 09:07:11
I'm developing an Android app that uses Outlook Calendar REST API. I'm trying to keep in synch and updated the calendars of multiple users (meeting rooms). My questions are: 1) After how long does the initial authorization code expires? 2) And for the refresh token instead? The access token expires after 60 mins. I can't get if for the refresh token expires after 6 hours, 14 days or 90 days. 3) Is the latter configurable? Can I make it not expire? ` UPDATE: (from https://msdn.microsoft.com/en-us/library/azure/dn645542.aspx ) "The lifetime of the refresh token is not provided and varies based

Using Azure Multi-Tenant application without an Office 365 subscription to access users calendar information

本小妞迷上赌 提交于 2019-12-01 06:28:32
We have written a service application that reads Office 365 calendar information from multiple calendars in an organisation (tenant) and does some analysis against the entries. We use the Office 365 REST API for this. We have multiple client organisations (tenants) that require this functionality so I have followed the steps in @Matthias Leibmann article here: Building Daemon or Service Apps with Office 365 Mail, Calendar, and Contacts APIs (OAuth2 client credential flow) We used a trial Azure account and a trial Office 365 subscription during development and everything works very well and we

OAuth grant flow - tokens expiration

一笑奈何 提交于 2019-12-01 06:22:13
问题 I'm developing an Android app that uses Outlook Calendar REST API. I'm trying to keep in synch and updated the calendars of multiple users (meeting rooms). My questions are: 1) After how long does the initial authorization code expires? 2) And for the refresh token instead? The access token expires after 60 mins. I can't get if for the refresh token expires after 6 hours, 14 days or 90 days. 3) Is the latter configurable? Can I make it not expire? ` UPDATE: (from https://msdn.microsoft.com/en

Using Azure Multi-Tenant application without an Office 365 subscription to access users calendar information

天涯浪子 提交于 2019-12-01 04:50:38
问题 We have written a service application that reads Office 365 calendar information from multiple calendars in an organisation (tenant) and does some analysis against the entries. We use the Office 365 REST API for this. We have multiple client organisations (tenants) that require this functionality so I have followed the steps in @Matthias Leibmann article here: Building Daemon or Service Apps with Office 365 Mail, Calendar, and Contacts APIs (OAuth2 client credential flow) We used a trial

Bug: findMeetingTimes throws “OrganizerUnavailable” on 15 minute start times

这一生的挚爱 提交于 2019-11-30 18:27:33
问题 When using the Graph API findMeetingTimes method on 15 minute start times (for example 3:15, or 3:45), the method will incorrectly throw a "emptySuggestionsReason = OrganizerUnavailable" error (and no rooms returned), whether rooms are available for that time, or not. For example, this will error: { "timeConstraint": { "timeslots": [ { "start": { "dateTime": "2018-01-11T10:15:00", "timeZone": "Pacific Standard Time" }, "end": { "dateTime": "2018-01-11T11:00:00", "timeZone": "Pacific Standard

Send reference attachment to email via Graph API

a 夏天 提交于 2019-11-30 18:06:06
问题 Graph API has a 4MB request limit so if I want to send an email with say a 10MB attachment I can't use the FileAttachment type. As I understand it the recommended way to do this is with a ReferenceAttachment which carries a link to a file that has been uploaded to OneDrive (which does accept large payloads). However, when I do this I can see the ReferenceAttachment in Sent Items (and can download it intact) but the attachment is not present at the destination (Gmail or Outlook). I'm calling

Calendar or user timezone with Office 365 API

六月ゝ 毕业季﹏ 提交于 2019-11-30 17:26:40
问题 Is it possible to get timezone of a user or its calendar through Office 365 or Graph API? I know that you can get start and end timezone from specific event. But that does not help me. 回答1: Sorry, we don't support this yet through Office 365 or Graph REST APIs. This is on our roadmap to add, but I don't have a timeline to share. 回答2: The Microsoft Graph REST API now returns a timeZone field from Get user mailbox settings. You can also retrieve just the timezone: GET /users/{id

Office365 API - Accessing another users/room's calendars

寵の児 提交于 2019-11-30 04:56:53
I'm attempting to build an application that will have access to all of an organization's calendars (users, rooms, etc). Currently my auth flow will sign in on behalf of a tenant user and make use of refresh tokens to access needed resources. As soon as I make a request to: https://outlook.office365.com/api/v1.0/users/{room-resource@email}/events My application is responded with a 401 From my gathering, it seems that this flow is limited to a single user's scope. Although the tenant admin should have permission to see any of the room resources, the room is technically a user itself so the API

Best way to achieve Conversation view for mail folder using Outlook REST API

不打扰是莪最后的温柔 提交于 2019-11-29 11:52:32
I would like to use the Outlook REST API to display the messages in a mail folder and group messages by conversations, like you have in any modern webmail. For example with inbox , I would request using a first query such as <mailuri>/inbox/messages?$select=ConversationId (by default it is reverse chronological order) It is not sufficient to group this request results by ConversationId because some emails may not be in inbox (think of sentmails ) or they may be paginated and not returned in the first page. Consequently, for each distinct ConversationId I need to perform another REST request,

Office 365 REST API - Access meeting rooms calendars

别来无恙 提交于 2019-11-29 04:22:36
Using the Office 365 API, we'd like to allow users to view meeting rooms calendars and reserve them for events according to their permissions within Office 365. I understand it's possible with an Admin consent using a service app , but this is not possible for all our use cases. We need to work with the user's actual permissions and not bypass them with the admin's permissions in the background. I also understood based on this question and that question that it was not possible to do so using the former Office 365 API. My question is whether it's now possible to do so using the new MS Graph