office365api

Can not send large message with Office 365 REST API

非 Y 不嫁゛ 提交于 2020-01-07 03:10:29
问题 I'm using JavaScript to make a POST request to create a message to Office 365 with xhr (Or using Faraday gem to make POST request - Ruby on Rails).My flow is encode file to base64 and create a JSON contain all attachments(encoded) then POST to https://outlook.office.com/api/v1.0/me/sendmail . var endpointUrl = "https://outlook.office.com/api/v1.0/me/sendmail"; var xhr = new XMLHttpRequest(); xhr.open("POST", endpointUrl); xhr.setRequestHeader("Authorization", "Bearer " + token); xhr

Get events of a specific time range

柔情痞子 提交于 2020-01-07 03:08:08
问题 I'm working with the Office365 Outlook Calendar API. I need to get events of a specific time range. I tried to compare the DateTimeTimeZone values inside of the foreach command, but it seems like it only supports a == operator: if ( calendarEvent.Start >= new DateTimeTimeZone() { TimeZone = TimeZoneInfo.Local.Id, DateTime = DateTime.Now.ToString("s") }) This code snippet fails with the error: Cannot apply operator '>=' to operands of type 'Microsoft.Office365.OutlookServices.DateTimeTimeZone'

Office 365 API - Request returned HTTP error 400

坚强是说给别人听的谎言 提交于 2020-01-06 19:58:50
问题 I'm trying to follow a tutorial where I pull mail and calendar events from the Office 365 API. I was able to pull mail but when I try to pull calendar events I get back error 400 which, from some Googling, is apparently that one of my headers being too long. I put a var_dump(getallheaders()); and can see the following: array (size=10) 'Host' => string 'localhost:9999' (length=14) 'Connection' => string 'keep-alive' (length=10) 'Pragma' => string 'no-cache' (length=8) 'Cache-Control' => string

Office 365 API - Request returned HTTP error 400

自闭症网瘾萝莉.ら 提交于 2020-01-06 19:58:43
问题 I'm trying to follow a tutorial where I pull mail and calendar events from the Office 365 API. I was able to pull mail but when I try to pull calendar events I get back error 400 which, from some Googling, is apparently that one of my headers being too long. I put a var_dump(getallheaders()); and can see the following: array (size=10) 'Host' => string 'localhost:9999' (length=14) 'Connection' => string 'keep-alive' (length=10) 'Pragma' => string 'no-cache' (length=8) 'Cache-Control' => string

OData Search with Office 365 Mail API .NET Client

我与影子孤独终老i 提交于 2020-01-06 08:34:06
问题 I need to perform an OData query $search = "subject:pizza" using the OutLook 365 API but using the Outlookservicesclient (found the in the outlook 365 sdk, this nuget https://www.nuget.org/packages/Microsoft.Office365.OutlookServices-V2.0/) See this OutLookAPI OData query Reference This works correctly using an HttpClient but with the .NET client library, its seemingly not possible to add any non-standard query parameters. Ie: var messages = await client.Users['mail@me.com'].Messages .Where(m

Microsoft Graph API : Access-Control-Allow-Origin

筅森魡賤 提交于 2020-01-05 08:08:40
问题 I am trying to integrate Microsoft Graph authentication and access sharepoint and User's Graph Profile & Pic. I had followed their document https://developer.microsoft.com/en-us/graph/docs/authorization/app_authorization I am able to achieve first step Authenticate a user and get app authorized , but not Acquire an access token . I have checked it in Postman, able to get response of access token. Same way I'm trying to do it using Jquery Ajax but getting XMLHttpRequest cannot load https:/

Office 365 Service Health Last update is 24 hours ago

偶尔善良 提交于 2020-01-05 05:53:21
问题 Whenever I send an API call to get the Current Status of the Service Health of Office 365, the last update is always exactly 24 hours behind. I saw this referenced here but the answer to the question was nonsense, so I will try it here. Example code in PowerShell Invoke-RestMethod "https://manage.office.com/api/v1.0/$tenantid/ServiceComms/CurrentStatus" -Headers $officeapiheader If the current time is 2019-10-17T05:18:25.469735Z The StatusTime field returned is 2019-10-16T05:18:25.469735Z

Add-In Commands Ribbon shows in Excel Online but not in Excel for Windows

半城伤御伤魂 提交于 2020-01-04 05:37:21
问题 I have an Add-In with its own Ribbon that works fine in Excel online but does not show the Ribbon in Excel on Windows [1]. There, it only shows the default task-pane. To make sure it does not have to do with my own manifest, I verified this with the OfficeDev simple Sample manifest [2]. The only two modifications I did to the xml file are replacing 2 instances of Document with Workbook. Also, I have verified this on two computers. Why could that be? [1] Microsoft Excel 2016 MSO (16.0.4266

Office 365 Graph API $top not being honoured on delta queries

前提是你 提交于 2020-01-03 08:47:13
问题 The Office 365 Graph API documentation suggests that $filter and $top operations should be supported when used together on a delta query... https://developer.microsoft.com/en-us/graph/docs/concepts/delta_query_messages#track-message-changes-in-a-folder However, when executing a query that uses both $filter and $top such as this: https://graph.microsoft.com/beta/me/mailfolders/AAMkADQ3MDg1NWRmLTUxMGQtNDRiMi1iMGE4LTAzMzdjNGRiYTIxNQAuAAAAAADEPuholyn_QpUTcq2qMEH4AQBScDrPb

Office 365 unified API (preview) requests 401 error

江枫思渺然 提交于 2020-01-03 06:01:08
问题 I'm trying to make some intersting things with Office 365 unified API (preview) and stuck on the moment with authorization. I made app with all permissions that I need I'm trying to log in users with URL "https://login.windows.net/common/oauth2/authorize?response_type=code&client_id={CLIENT_ID}&resource=https://graph.microsoft.com/" Evething works well. I even can get access_token with all scopes by request to https://login.windows.net/common/oauth2/token. BUT! I have problem, I cant get any