office365

Sending custom HTTP request with PHP

自古美人都是妖i 提交于 2019-12-08 12:43:57
问题 I am trying to authenticate with the new Office 365 API. I have successfully authenticated and I'm swimming in a garden of roses. However, the last part is to sent a custom HTTP request with my shiny new access token. It doesn't seem to be working though. Can someone please outline how to send the http request detailed below with PHP? GET https://outlook.office365.com/EWS/OData/Me/Inbox/Messages?$top=5 User-Agent: My-Cool-WebApp/1.0 client-request-id: 9aa1c740-25e2-4841-9146-ef7018f7bf37

Multi-Tenant app - OneDrive Business API

三世轮回 提交于 2019-12-08 12:39:09
问题 I need to create an universal app windows 10 that allow users save his files in his own OneDrive Business account. I read that I need to register the app with Azure Active Directory (developer account) and then request permissions for OneDrive for Business. But: Question1 : if app is set as "multi-tenant" in Azure AD, every user will store his files in his own business account onedrive? user logged: xxxx@contoso.onmicrosoft.com ---> onedrive business account contoso.onmicrosoft.com user

Office365 “addFileAttachmentAsync” error when doing multiple requests

你。 提交于 2019-12-08 11:39:29
问题 I am experiencing issue with addFileAttachmentAsync . I have 2 array : embeddedFiles (containes filenames that will be attached into body) and attachments (containes filenames that will be attachment). I have got 2 for loops running for each array and they should make GET request to Exchange Server with every single file in array and get back binary file. for (var i = 0; i < embeddedFiles.length; i++) { var attachmentName = (new Date()).getTime() + ".png"; var count = 0; var options = {

Office Outlook Add-In OAuth Error

馋奶兔 提交于 2019-12-08 11:29:52
问题 i'm currently developing an Office Outlook App. I'm trying to get the messages (specially the Attachments of messages) from the Exchange Server. I'm using the Outlook Desktop Application. I already got the bearer authentication token and i'm trying using the Office REST-API to get the messages, but there is a strange error if i send the GET request to the server. Error: " The api you are trying to access does not support item scoped OAuth. " Here is my JavaScript-Code: Office.context.mailbox

Calling SaveAsync method sends email to attendees for existing appointment?

早过忘川 提交于 2019-12-08 10:50:39
问题 I just noticed following change related office js (in compose mode for outlook add-in), Office.context.mailbox.item.saveAsync(function(result){..} Previously calling saveAsync method inside Outlook Add-in was sending invitation email for new appointment or draft, could be due to recent fixes or changes now it won't send invitation email to attendees for new/draft appointment. But this change has introduced new BUG, now it sends email on existing appointment which was working fine previously.

Office JavaScript API: highlighting text in a document

删除回忆录丶 提交于 2019-12-08 10:36:36
问题 I'm working on a side project using the Microsoft Office JavaScript APIs. I have been relying on the documentation to find my way around, but I've hit a wall trying to find something in the docs (perhaps it isn't there because it doesn't exist). Recently I attempting to implement some functionality to highlight some text within a Word document. I don't want to modify the document, mind you; in other words I would rather not use something like ContentControl.insertHtml as that would change the

Azure AD app-only access tokens for exchange impersonation

不打扰是莪最后的温柔 提交于 2019-12-08 09:41:57
问题 I have been following this resource to create an application on azure that authenticates itself with the azure active directory. We want to use the token from this auth interaction with exchange and the EWS managed API to impersonate everyone in our organization, without them having to login. I have registered an app with our organization on azure and gave it permission to exchange. After creating a certificate and setting up our azure application with it, I can get an app-only access token

Office 365 / EWS Authentication using OAuth: The audience claim value is invalid

百般思念 提交于 2019-12-08 08:36:57
问题 I'm still struggling with this. Please see my previous question for details. I am doing an application (currently command line) which should access Office 365/Exchange through EWS Managed API. The goal is to authenticate through OAuth2. I have registered an application in Azure AD. I have used the ClientID from there I generated an App Secret / Key I have delegated the "Have full access to a users' mailbox (preview)" permissions to the App. I am using ADAL to retrieve the Access Token like

Creating new site collection in Office 365 from an APP

自作多情 提交于 2019-12-08 08:03:50
问题 I have a requirement to create a new site collection from within an App in Office 365 programmatically. What I mean by a new site collection, is that after creation, it should appear on the list of site collections under the Admin --> Sharepoint tab of Office 365. I tried using a similar code below within a sharepoint hosted app that i had created, //create sp context and get root var clientContext = new SP.ClientContext.get_current(); var rootWeb = clientContext.site.rootWeb(); this

Write efficient queries with the OutlookServicesClient

末鹿安然 提交于 2019-12-08 07:29:25
问题 I am using the Office 365 Mail API and my goal is to get the total number of email messages a user sent (1.) and received (2.) today . Todo this, I first created and tried and run some queries in the Office 365 API Playground: https://outlook.office.com/api/v2.0/me/mailfolders/sentitems/messages?$filter=sentdatetime%20ge%202015-12-10T08:00:00.000Z&$select=Subject,CreatedDateTime,ToRecipients https://outlook.office.com/api/v2.0/me/messages?$count=true&$filter=receiveddatetime%20ge%202015-12