office365-restapi

Office 365 v2 API Authorization code is malformed or invalid

扶醉桌前 提交于 2019-12-04 18:12:04
I've the following auth code copied from the browser for a user who granted our app to use their Office 365 email. code=OAQABAAIAAADRNYRQ3dhRSrm-4K-adpCJ3J3UJ8GyC2qJDvNhlrUAObjph6sQ3A9waeQ5Tr-DA6WzxCdFbvadCRJw2S4a_lwA7MyelZWAPQZOlaB_X_1165CbmTXJMGioU6Cr0DhVTUzIlUv_-Svjp8DBrLVCxcDp5rJMM5mDNR0iGysuDIozWnOaPqCOl35NxPzyktrYK6D1MBptmXOPbhS-stTZXbHJr9gGE3FHzMU0XANXmTm30q4SPaoWPch-S1uFFL4xwS2oUv-lELBdcfIGh5UJBSraabGihVWUnbwBhh8eURSMRwryi7kubUcq0D27S-vIVZhtKopemQ1njAcExO58S7EgAyqbIzMxvmBXBe0X1ieVrcyHYRpt4ZAq1Z4v5HLTrYhx5fGp6AkqhV09yri3bqXaZvw5R1hKuhAbRDt_isZn

Fetch messages filtered by conversationId via Office365 API

谁都会走 提交于 2019-12-04 17:14:36
I'm having some trouble figuring out how to use the office365 api to fetch messages given a conversationId . Let's say my conversationId is AAQkADlkOGJmMTFmLTc2NjMtMKL3My04ZDhkLTVmZWNjMzA1ODY0NAAQAB11Xh2opSpBiXifMEJjhow= I'll make a request like https://outlook.office.com/api/v1.0/me/Messages?$filter=ConversationId%20eq%20AAQkADlkOGJmMTFmLTc2NjMtMKL3My04ZDhkLTVmZWNjMzA1ODY0NAAQAB11Xh2opSpBiXifMEJjhow= This results in a 400 response like this: { "error": { "code": "RequestBroker-ParseUri", "message": "Syntax error at position 98 in 'ConversationId eq

Can't get all busy times of meeting rooms using the Office365 Calendar API

时间秒杀一切 提交于 2019-12-02 19:41:11
问题 Trying to fetch calendar events in order to allow a user to pick a time for a meeting where the attendees and the meeting room are available. We're using Outlook Calendar REST API v2 - findMeetingTimes: https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations#FindMeetingTimes The request returns almost all of the events. For some reason events that were created by the user that executes the request are not included in the response. It means that the meeting room or

Can't get all busy times of meeting rooms using the Office365 Calendar API

一世执手 提交于 2019-12-02 11:00:34
Trying to fetch calendar events in order to allow a user to pick a time for a meeting where the attendees and the meeting room are available. We're using Outlook Calendar REST API v2 - findMeetingTimes: https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations#FindMeetingTimes The request returns almost all of the events. For some reason events that were created by the user that executes the request are not included in the response. It means that the meeting room or attendee seem as FREE even though they have an event in their calendar. Here's a sample request with only

Constructor of type HttpHandler not found using the Office 365 API

泄露秘密 提交于 2019-12-01 14:17:03
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 Uri("https://outlook.office.com/api/2.0"), async () => { // Since we have it locally from the Session, just return it here. return token; }); var eventResults = await client.Me.Events.OrderByDescending(e => e.Start).Take(10).Select(e => new DisplayEvent(e.Subject, e.Start.ToString(), e.End.ToString())).ExecuteAsync(); // query: https://outlook.office.com

Constructor of type HttpHandler not found using the Office 365 API

て烟熏妆下的殇ゞ 提交于 2019-12-01 12:59:19
问题 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 Uri("https://outlook.office.com/api/2.0"), async () => { // Since we have it locally from the Session, just return it here. return token; }); var eventResults = await client.Me.Events.OrderByDescending(e => e.Start).Take(10).Select(e => new DisplayEvent(e

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