office365api

Get Office 365 API access token without user interaction

心不动则不痛 提交于 2019-11-29 08:45:09
I want to add a feature to my application so that it will be able to add calendar events to outlook.com without user interaction. All the examples I've seen require user to login to be able to access office 365 api token. How do i get that token without user interaction? You can use the Client Credential to request the token instead of OAuth 2.0 Code Grant flow . Here is the request for your reference: POST https://login.microsoftonline.com/<tenantId>/oauth2/token HTTP/1.1 Content-Type: application/x-www-form-urlencoded grant_type=client_credentials &client_id=<clientId> &client_secret=

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

百般思念 提交于 2019-11-28 13:14:50
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/docs/api-reference/beta/api/user_findmeetingtimes GET https://graph.microsoft.com/beta/me/calendar I

OneDrive for Business API - Daemon Tenant with App Only Token

偶尔善良 提交于 2019-11-28 06:52:51
问题 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, 回答1: 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

Best way to achieve Conversation view for mail folder using Outlook REST API

浪子不回头ぞ 提交于 2019-11-28 05:22:51
问题 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

Refresh token not returned for Office365 accounts purchased through GoDaddy

时间秒杀一切 提交于 2019-11-28 02:52:39
问题 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

Get Office 365 API access token without user interaction

我的未来我决定 提交于 2019-11-28 02:06:41
问题 I want to add a feature to my application so that it will be able to add calendar events to outlook.com without user interaction. All the examples I've seen require user to login to be able to access office 365 api token. How do i get that token without user interaction? 回答1: You can use the Client Credential to request the token instead of OAuth 2.0 Code Grant flow . Here is the request for your reference: POST https://login.microsoftonline.com/<tenantId>/oauth2/token HTTP/1.1 Content-Type:

Validate login credentials using EWS Managed API

我的未来我决定 提交于 2019-11-27 03:39:58
问题 Is there a way to validate login credentials provided by a user using EWS Managed API without sending an email. I am using AutodiscoverUrl method on an [ExchangeService] object but it takes too long? Any suggestion would be appreciate it. try { ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_SP1); service.Credentials = new WebCredentials("xxxx@yyy.com", "password"); service.AutodiscoverUrl("xxxx@yyy.com", RedirectionUrlValidationCallback); Console.WriteLine(