office365api

How to retrieve contents of an itemAttachment via the Microsoft Graph API

拈花ヽ惹草 提交于 2019-12-01 03:07:15
问题 I'm currently developing a solution which is retrieving e-mails via the Microsoft Graph API. In november 2015 Microsoft stated it is ready for production and I've read in another forum post that if you start now on developing using a Microsoft API, you should use the Graph API, since it is the future. Everything is going well except for one thing and that is the following. I must retrieve e-mails. Inside these e-mails there are of course attachments. These attachments come in some variaties.

Multiple resources in a single authorization request

风格不统一 提交于 2019-12-01 01:28:24
We currently use the following authorize url: https://login.microsoftonline.com/common/oauth2/authorize?resource=https%3A%2F%2Foutlook.office365.com We want to also use the Graph API, so I added the following: https://login.microsoftonline.com/common/oauth2/authorize?resource=https%3A%2F%2Foutlook.office365.com%2F%26https%3A%2F%2Fgraph.microsoft.com I've tried different delimiters between the two resources, but couldn't get it to work. Each one resource works separately. I hope that more than 1 resource at a time is supported? I think what you're trying to do here by passing multiple values to

Create groups calendar events fails

二次信任 提交于 2019-11-30 20:22:17
POST https://graph.microsoft.com/v1.0/groups/4a3c5f77-463e-XXXXXX-fa8XXXXXX/calendar/events Accept: application/json Authorization: Bearer <Token> Content-Type: application/json; charset=utf-8 { "originalStartTimeZone": "UTC", "originalEndTimeZone": "UTC", "start": { "dateTime": "2015-12-03T09:30:00-00:00", "timeZone": "UTC" }, "end": { "dateTime": "2015-12-03T10:30:00-00:00", "timeZone": "UTC" }, "responseStatus": { "response": "Accepted", "time": "2015-12-01T18:34:00-08:00" }, "reminderMinutesBeforeStart": 15, "isReminderOn": true } Error: { "error": { "code": "ErrorInternalServerError",

FindMeetingTimes API not returning expected output for the same date

时光总嘲笑我的痴心妄想 提交于 2019-11-30 20:14:37
问题 I am using the FindMeetingTimes API of Microsoft Graph Library. I am sending the request { "attendees":[ { "emailAddress":{ "address":"aparna@meetingassistant.onmicrosoft.com", "name":"Aparna Banerjee" }, "type":"Required" }, { "emailAddress":{ "address":"pallavi01@meetingassistant.onmicrosoft.com", "name":"Pallavi Chowdhery" }, "type":"Required" } ], "timeConstraint":{ "timeslots":[ { "start":{ "dateTime":"2017-10-12T18:00:00", "timeZone":"India Standard Time" }, "end":{ "dateTime":"2017-10

Authentication Problems Using the Office 365 API

可紊 提交于 2019-11-30 18:11:05
问题 My goal is to get the user's (Office 365 and Outlook.com) meetings for a given day in a WPF C# project. Following the steps described in the Outlook Dev Center Tutorial, the second step (after registering the app) would be to authenticate the user using OAuth2. But I cannot make it work: I did not find any tutorial/code snippet which I was able to run. They are all written either for Apps or Asp.Net (or something else). I tried to adapt these, but without success... I installed the Active

Create groups calendar events fails

杀马特。学长 韩版系。学妹 提交于 2019-11-30 04:42:28
问题 POST https://graph.microsoft.com/v1.0/groups/4a3c5f77-463e-XXXXXX-fa8XXXXXX/calendar/events Accept: application/json Authorization: Bearer <Token> Content-Type: application/json; charset=utf-8 { "originalStartTimeZone": "UTC", "originalEndTimeZone": "UTC", "start": { "dateTime": "2015-12-03T09:30:00-00:00", "timeZone": "UTC" }, "end": { "dateTime": "2015-12-03T10:30:00-00:00", "timeZone": "UTC" }, "responseStatus": { "response": "Accepted", "time": "2015-12-01T18:34:00-08:00" },

How to get In-Place archive mailbox in Exchange Online using Office 365 APIs

别来无恙 提交于 2019-11-29 17:02:42
I want to get list of folders/emails inside In-Place mailboxes. But both mailbox list and folder list doesn't returns In-Place mailboxes. This is what I have tried till now: Get mailboxes using following request Request: https://outlook.office365.com/api/v1.0/users('someuser@somedomain.onmicrosoft.com') Response: { "@odata.context": "https://outlook.office365.com/api/v2.0/$metadata#Users/$entity", "@odata.id": "https://outlook.office365.com/api/v2.0/Users('12637010-f344-4827-9e3b-21218392985d@649b37da-e479-45dc-a099-fda797d7fcee')", "Id": "12637010-f344-4827-9e3b-21218392985d@649b37da-e479

OneDrive for Business API - Daemon Tenant with App Only Token

倖福魔咒の 提交于 2019-11-29 12:54:45
Is it possible to use OneDrive Business API with App Only Token for Daemon Apps? I have tried technique purposed in this post , but i couldnt access API. In fact there is nothing in OneDrive Business API documentation which indicates how to impersonate tenant users, for example /drives/{upn}/root or something. Best, It does work with app only tokens for daemon apps. You can use the user's UPN as the drive-id, as you mentioned in your question. We're getting the documentation updated to include that this works. 来源: https://stackoverflow.com/questions/33755470/onedrive-for-business-api-daemon

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,

Refresh token not returned for Office365 accounts purchased through GoDaddy

依然范特西╮ 提交于 2019-11-29 09:24:56
Background We have a feature that syncs calendar entries and contacts between our application and Office365, using the Office365 REST apis outlined here . We are using Version 1 of the API. For authorization we are performing authorization via Azure AD as outline here . Problem In the normal case (when using Office365 accounts purchased directly from Microsoft), our system works as expected: we are able to refresh the user's tokens when they expire and are returned a new access and refresh token in exchange. In the second case, when testing with Office365 accounts purchased via GoDaddy , we