天道酬勤,学无止境

office365api

Getting Bad Request error while updating email category with Office 365 API and HttpClient in C#

问题 我正在尝试更新电子邮件类别,并在Outlook 365 API和HttpClient的帮助下将其标记为已读。 按照本教程。 在本教程中,代码如下更新类别并标记为已读,但我不知道我应该如何将这些详细信息附加到HttpClient和请求。 PATCH https://outlook.office.com/api/v2.0/me/messages/AAMkAGE0Mz8S-AAA= Content-Type: application/json { "Categories": [ "Orange category", "Green category" ], "IsRead": true } 我使用的方法和HttpClient如下: 更新 1 public string UpdateCategory(AuthenticationResult result, string mediator) { //HTTPMethod.PATCH not available to adding it manualy. var httpMethod = new HttpMethod("PATCH"); HttpRequestMessage request = new HttpRequestMessage(httpMethod, mediator); request.Headers

2022-05-16 09:57:03    分类:技术分享    c#   wpf   httprequest   dotnet-httpclient   office365api

Read parameters from Outlook 365 Add-In manifest

问题 是否可以通过编程方式从 Outlook 365 加载项清单中获取参数(如版本号或资源)? 我已经在互联网上搜索了所有内容,但还没有找到任何方法:( 一些背景知识:我需要在运行时从清单设置中获得一些信息(客户应通过清单安装插件,并为每个客户定制一些特殊数据)。 提前致谢! 回答1 回答2

2022-05-14 10:17:05    分类:技术分享    outlook   office365   office365api   office365-apps   office-js

How to read calendars which are shared by others in Office 365 REST API

问题 https://outlook.office.com/api/v1.0/Users/me/calendars 我用这个来获取我所有的日历。 除了其他人与我共享的日历外,我拥有所有日历。 我只想看这些日历。 我的问题是:Office 365 Rest Api 是否支持我的方案 - 阅读他人与我共享的日历? 如何? 回答1 No it doesn't. Right now the API only supports accessing your data, it doesn't support accessing other folks, even if they've given you access. This is a feature we are looking at adding, but I don't have a timeline to share.

2022-05-12 00:32:03    分类:技术分享    office365   office365api

Is it possible to edit an Office document stored in the cloud using the Office 365 API?

问题 是否可以将我们的 asp.net (vb.net) 网站与 Office 365 集成,以便拥有 Office 365 订阅的客户可以使用在线 Office 365 编辑器编辑存储在我们服务器上的文档? 我们的网站已经使用 Google Docs 编辑器和 Zoho 做到了这一点,所以现在我们要添加 Office 我已经尝试过使用 Visual Studio 2013 的 Office 365 入门项目以及单租户和多租户项目。但是,当我在 Visual Studio 2013 中打开我的 asp.net 网站时,菜单项Add-> Connected service丢失。 但是,它存在于 asp.net MVC 项目中。 回答1 回答2

2022-05-11 20:05:08    分类:技术分享    asp.net   vb.net   office365   office365-apps   office365api

Unique user id in multi tenant Azure AD apps

问题 你知道多租户 Azure AD 应用程序模式中的唯一用户 ID吗? 我现在正在使用带有 Azure AD 多租户应用程序模式的 Microsoft Graph 开发应用程序。 为了识别每个用户,我想知道唯一的 id - 我将使用它作为我们自己数据库中的键来保存用户的数据。 在此参考中,用户对象中的 id 参数是“用户的唯一标识符”,但我想知道它是每个租户还是所有租户的唯一 ID ? 这很重要,因为我的应用程序将在多租户中使用。 仅供参考:如果用户 ID 仅在每个租户中是唯一的,我将连接组织 ID 和用户 ID 以在所有租户中制作唯一 ID。 回答1 id 属性是一个随机 GUID。 虽然不太可能有两个具有相同 ID 的用户,但除非在 Azure 中进行检查,否则可能会发生这种情况。 我会将它与租户 ID 连接起来,或者甚至更好地将租户 ID 放在数据库的另一列中。 这样,您就可以在数据库中按租户查询用户。

2022-04-30 18:11:04    分类:技术分享    azure-active-directory   microsoft-graph-api   office365api   azure-ad-graph-api

Is it possible to edit an Office document stored in the cloud using the Office 365 API?

Is it possible to integrate our asp.net (vb.net) web site with Office 365 so our customers with Office 365 subscriptions can edit documents stored on our servers with the online office 365 editors? Our site already does this with Google Docs editor and Zoho so now we want to add Office I have tried the Office 365 starter project and the single tenant and multiple tenant projects with Visual Studio 2013. However, when I opened up my asp.net web site in visual studio 2013, the menu item Add-> Connected service is missing. But, it is present for an asp.net MVC project.

2022-04-30 17:02:56    分类:问答    asp.net   vb.net   office365   office365-apps   office365api

The property 'iCalUId' does not exist on type 'Microsoft.OutlookServices.Event

I'm using Graph API to get/list and create calendar events. Lately I was trying beta API and recently I've encountered following error on attempt to create calendar event: The property 'iCalUId' does not exist on type 'Microsoft.OutlookServices.Event I'm performing POST request using following address: https://graph.microsoft.com/beta/Users('<user-id>')/calendars/<id>/events with a JSON object containing 'iCalUId' property. That object was retrieved using beta version of Graph API couple of weeks ago. And at that time creation of calendar event with the same request worked properly

2022-04-30 14:21:11    分类:问答    office365   microsoft-graph-api   office365api

How to read calendars which are shared by others in Office 365 REST API

https://outlook.office.com/api/v1.0/Users/me/calendars I used this one to get all my calendars. I've got all calendars except calendars which are shared by others with me. I just want to read these calendars. My question is: Does Office 365 Rest Api support my scenario - read calendars shared by others with me? How?

2022-04-30 04:22:38    分类:问答    office365   office365api

Microsoft Graph API: Group Calendar Events created by API are not sent to users Calendar

When I create (or update) an Event in the Calendar from the Outlook Desktop Application every member of the group gets the Event in his personal calendar - (or according to the "Follow in Inbox" setting). When I create an Event using the Graph API, the event shows up in the Groups Calendar, but it is not pushed to the Members calendars. There is also no notification in the groups inbox.

2022-04-28 13:18:29    分类:问答    outlook   microsoft-graph-api   office365api   outlook-restapi

Microsoft 365 management API, currentStatus returns yesterday "statusTime" field

We're working on migrating to Office365/M365 and when we make an API call to the Microsoft Management API for status, the statusTime field is yesterday. Any ideas why? https://manage.office.com/api/v1.0/(tenant)/ServiceComms/CurrentStatus Here's a partial json from the Exchange Online status: "Status": "ServiceRestored", "StatusDisplayName": "Service restored", "StatusTime": "2018-10-01T18:49:36.4528522Z", "Workload": "Exchange", "WorkloadDisplayName": "Exchange Online" StatusTime is exactly 1 day behind from my current timezone. The time appears to be in UTC but its UTC - 1 day. I'm confused

2022-04-28 05:49:57    分类:问答    office365api   azure-management-api