office365api

Office365 API - Pulling my userphoto

余生长醉 提交于 2019-12-22 11:32:52
问题 I have a simple web app that for the past month or so the following was working: outlook.office365.com/api/beta/Me/userphotos('120x120')/$value but now it returns: {"error":{"code":"RequestBrokerOld-ParseUri","message":"Resource not found for the segment 'userphotos'."}} I get the same error if I try any of the following: https://outlook.office365.com/api/beta/Me/userphoto https://outlook.office365.com/api/beta/Me/userphotos https://outlook.office365.com/api/beta/Me/userphoto/$value It is

Office365 authentication without login redirection

亡梦爱人 提交于 2019-12-22 09:36:03
问题 I'm trying to load data from Office365 email without need for user interaction. I've created Azure App and I have Client ID and Client secret. I also have user information (email + password). I need to call Office365 API to download emails from mailbox. But I need application to download them in background without user interaction (redirecting to MS/Office365 login page) to get authenticated/logged into mailbox. Is there any way how to do this only through Office API, without need of

How to send nested attachments?

三世轮回 提交于 2019-12-21 02:36:13
问题 Stuck here writing JS code to send out an email via REST within a custom Outlook add-in. Scenario is following report \ \---- another message (item attachment) \ \------- attachment (file attachment) In words, I am sending a new report message which includes another message as an Item Attachment (that works fine). But now, the problem is that, when sending with another message that has attachments, then this fails. Opening the report which has the other message attached doesn't show the

File attachments showing as message entities in Microsoft Graph API

半腔热情 提交于 2019-12-20 23:49:49
问题 Recently we've noticed that the Microsoft Graph API has been returning file attachments as message entities returned from the /me/messages endpoint. The scenario to reproduce is as follows: Send yourself an email (or have someone else send you an email) with one or more file attachments Run the following query in Graph Explorer: https://graph.microsoft.com/v1.0/me/messages Notice that there will be one object which represents the email itself (this is correct behaviour) and one or more

How to get all the items contained inside a office365 onedrive

大憨熊 提交于 2019-12-20 04:37:03
问题 I want to get all the files and folders contained inside a office365 onedrive folder in one rest API call, is there any option to do it? 回答1: There isn't a specific API call to retrieve a flat representation of a Drive. You can achieve a similar effect however using the drive's search method. Simply pass an empty query string and it will return metadata for each file (regardless of it's directory): https://graph.microsoft.com/v1.0/me/drive/root/search(q='') 来源: https://stackoverflow.com

How can I add a PublisherId to a GetBlob call to the Office365 Rest API to avoid throttling?

痴心易碎 提交于 2019-12-20 03:51:21
问题 I'm attempting to iteratively retrieve the content from the O365 management API (found here). When I get to the 'Retrieving Content' section, I am making a get request using the URI returned from the 'Get Available Content' method. I am able to successfully iterate over the available content using the returned URI, but I am seeing the following message appear occasionally: {"error": {"message": "Too many requests. Method=GetBlob, PublisherId=00000000-0000-0000-0000-000000000000", "code":

NameIdentifier vs ObjectIdentifier

ぐ巨炮叔叔 提交于 2019-12-19 05:08:25
问题 I have a multitenant ASP.NET application using OpenIdConnect and Azure AD as an Identity provider for Office 365. When the user is authenticated I receive my claims in ClaimsPrincipal.Current . I wanted to identify a user and store this id reference in my database. I asked this question. It was replied that When trying to identify a user uniquely [NameIdentifier] should be your go-to choice. But it seems that the NameIdentifier claim, http://schemas.xmlsoap.org/ws/2005/05/identity/claims

Multiple resources in a single authorization request

一个人想着一个人 提交于 2019-12-19 04:45:49
问题 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

How to display a list of available meeting rooms at present using Microsoft Graph API

本秂侑毒 提交于 2019-12-17 20:42:46
问题 I have been trying to play around with the Microsoft Graph API. I have a situation here. I have assigned some meeting rooms with an email ID and want to know the availability of all. If the rooms are available currently , I should get the name of the meeting room and if possible , the duration for which the room is available. I want to know how to query multiple rooms and return the data. A bit confused about the following APIs, would these help ? https://developer.microsoft.com/en-us/graph

GoDaddy redirect from office365 not returning refresh token

ε祈祈猫儿з 提交于 2019-12-14 03:57:10
问题 I have an app which syncs to OneDrive. If the user is using Office365 via GoDaddy and I have a grant_type of 'refresh_token', it doesn't return the refresh_token back, which in turn, won't let me refresh the token I currently have. I've tried adding access_type="offline" and prompt="consent" when doing a POST request to no avail. Help? Here's my code: credentials = OpenStruct.new params = { client_id: client_credentials[:key], redirect_uri: redirect_url, client_secret: client_credentials[