POST https://graph.microsoft.com/v1.0/groups/4a3c5f77-463e-XXXXXX-fa8XXXXXX/calendar/events
Accept: application/json
Authorization: Bearer <Token>
Content-Type: application/json; charset=utf-8
{
"originalStartTimeZone": "UTC",
"originalEndTimeZone": "UTC",
"start": {
"dateTime": "2015-12-03T09:30:00-00:00",
"timeZone": "UTC"
},
"end": {
"dateTime": "2015-12-03T10:30:00-00:00",
"timeZone": "UTC"
},
"responseStatus": {
"response": "Accepted",
"time": "2015-12-01T18:34:00-08:00"
},
"reminderMinutesBeforeStart": 15,
"isReminderOn": true
}
Run Code Online (Sandbox Code Playgroud)
错误:
{
"error": {
"code": "ErrorInternalServerError",
"message": "The SMTP address has no mailbox associated with it.",
"innerError": {
"request-id": "f62423b0-0ade-494d-8c8c-1b56db60b524",
"date": "2015-12-02T10:39:44"
}
}
}
Run Code Online (Sandbox Code Playgroud)
我试过下面提到的两个帖子,
POST /groups/<id>/events
POST /groups/<id>/calendar/events
Run Code Online (Sandbox Code Playgroud)
我尝试了不同的组类型,包括安全性,已启用邮件和统一组,但我看到相同的错误消息,任何帮助将不胜感激.
我想知道Office 365 REST API和Microsoft Graph之间的区别,因为我们可以找到这两者的类似功能.
https://msdn.microsoft.com/en-us/office/office365/howto/rest-api-overview
以下是上面链接的文字:
Office 365 API功能也可通过Microsoft Graph获得,Microsoft Graph是一种统一的API,包括来自其他Microsoft服务(如Outlook,OneDrive,OneNote,Planner和Office Graph)的API,可通过单个端点和单个访问令牌访问.
如果没有这样的差异,你打算弃用这些吗?
谢谢
api office365 office365api office365connectors microsoft-graph
是否可以连接到Office365服务器并使用UCWA(ucwa.skype.com/)和Skype for Business?
我想使用这个例子https://www.matthewproctor.com/Send-An-IM-With-UCWA-Creating-the-Application/但我不知道我可以使用哪个服务器进行连接...
asp.net-web-api ucwa skype-for-business office365api skypedeveloper
我按照这篇文章http://dev.office.com/code-samples-detail/2142和Ruby来获取用户的电子邮件地址.这是代码:
# Parses an ID token and returns the user's email
def get_email_from_id_token(id_token)
# JWT is in three parts, separated by a '.'
token_parts = id_token.split('.')
# Token content is in the second part
encoded_token = token_parts[1]
# It's base64, but may not be padded
# Fix padding so Base64 module can decode
leftovers = token_parts[1].length.modulo(4)
if leftovers == 2
encoded_token += '=='
elsif leftovers == 3
encoded_token += '='
end
# Base64 decode (urlsafe version)
decoded_token = …Run Code Online (Sandbox Code Playgroud)我必须更新一个看起来像这样的电子表格.
这根本不难.我只是转到最后一行,在相应的列中输入我需要的内容.我想自动化这个.我尝试的第一件事是Selenium Webdriver,但结果太慢而且命中和错过.我检查的下一件事是API,但看起来没有Excel的东西.
我可以使用Selenium下载文件,然后使用C#app将其修改为excel文件,然后重新上传.虽然我想知道Google Docs是否有更简单的解决方案.
那么有什么方法可以以编程方式修改excel在线电子表格吗?
我按照此文档使用Graph API版本1.6列出了Office 365租户中的用户.
我想过滤作为用户引用的Office 365共享邮箱,然后在请求时返回/users/.(例如contact@contoso.com,support@contoso.com).
从我所看到的,没有办法区分代表共享邮箱的用户和"常规"用户.有人有机制来过滤这样的邮箱吗?不是在我的情况下,JSON成员userType总是如此null.
我试图通过 microsoft graph 接收有关日历事件的推送通知
NotificationURL 指向运行在 NodeJS 上的 webservice
我所做的订阅有这些选项。
{
"changeType": "created,updated,deleted",
"notificationUrl": "myurl",
"resource": "users/userid/events?$filter=sensitivity%20eq%20%27Normal%27",
"expirationDateTime":"2016-11-05T18:23:45.9356913Z",
"clientState": "customclientstate"
}
Run Code Online (Sandbox Code Playgroud)
但是,每当更改单个事件时,我都会收到来自订阅的多个 POST 调用(2~4)(所有这些调用都具有相同的主体)。
只有一个订阅有效,一个日历,我正在响应状态代码 204 的请求,没有任何内容(用邮递员测试)。
这是一个大问题,因为每当请求进来时我都会更新数据库。
有没有人遇到过这个问题?我一直在寻找没有任何结果。
任何投入将不胜感激!!=)。
我的用户无法使用我们的服务,因为Outlook REST API返回以下错误代码RESTAPINotEnabledForComponentSharedMailbox。
看来他们的邮箱不是共享邮箱。那是什么样的邮箱?
您能告诉我更多有关此错误的信息吗?有什么可以做的吗?
我想阅读我的电子邮件并将它们转换为 json。我正在使用Microsoft Graph API像这样查询 Office 365 邮箱
GraphServiceClient client = new GraphServiceClient(
new DelegateAuthenticationProvider (
(requestMessage) =>
{
requestMessage.Headers.Authorization =
new AuthenticationHeaderValue("Bearer", token);
return Task.FromResult(0);
}
)
);
var mailResults = await client.Me.MailFolders.Inbox.Messages.Request()
.OrderBy("receivedDateTime DESC")
.Select(m => new { m.Subject, m.ReceivedDateTime, m.From, m.Body})
.Top(100)
.GetAsync();
Run Code Online (Sandbox Code Playgroud)
我按照本教程进入了这个阶段。但是我的消息正文返回为 html 而不是文本。有没有办法可以指定 message.body 返回文本甚至 json 而不是 HTML?
c# office365 office365api microsoft-graph-security microsoft-graph-api
我编写了一个控制台应用程序,将用于将文件上传到 Office 365 统一组。我正在使用 Microsoft Graph API 获取对组下驱动器的引用,然后上传文件。我正在使用 Microsoft.IdentityModel.Clients.ActiveDirectory NuGet 包进行身份验证。该应用程序需要上传数千个文件,我相信我遇到了一些限制问题。
我能够上传大约 4000 个文件,没有任何问题,但之后我开始收到 401“未经授权”响应。起初我以为这是令牌过期问题,但我更改了代码,以便在遇到 401 时获取全新的令牌。我最初并没有怀疑存在限制问题,因为我没有收到 429 响应错误代码(请参阅:https ://github.com/OfficeDev/microsoft-graph-docs/blob/master/content/overview/errors.md ) 。
是否有可能在一段时间内对 Microsoft Graph API 的请求过多可能会导致 401 未经授权的错误响应消息?
我按顺序发出上传请求(不是并行),并且在每个请求之间添加了 1 秒的暂停。
office365 office365api azure-ad-graph-api microsoft-graph-api