Tag: microsoft graph

Azure AD v2.0身份validation响应中的ERR_TOO_MANY_REDIRECTS错误

我正在使用Microsoft Graph从Node.js Web应用程序中访问用户的Microsoft帐户数据,以调用其余的API。 但是,一旦完成身份validation,而不是返回到ReturnURL ,我在浏览器中获取ERR_TOO_MANY_REDIRECTS 。 下面是我正在使用的Node应用程序: https://github.com/microsoftgraph/msgraph-sdk-javascript 正如我所看到的,这似乎是一些如何访问令牌冲突和由于该护照无法validation我的请求。 有人可以帮我在这里,我在这里失踪。 我没有做任何重大的应用程序的变化。 请让我知道如果有人需要更多的信息。 谢谢。

与节点js的Outlook api webhookvalidation错误

当我想要使用outlook API注册订阅时,我遇到了通知URL的validation问题。 请求中传递的选项是: var optionsSubscription = { url: "https://outlook.office.com/api/v2.0/me/subscriptions", method: "POST", headers: { "authorization": "Bearer " + user.outlookCalAccessToken, "accept": "application/json", "ContentType": "application/json", }, json: { "@odata.type": "#Microsoft.OutlookServices.PushSubscription", "Resource": "me/events", "NotificationURL": "https://xxx/callback", "ChangeType": "Created,Deleted,Updated" }, "Content-Type": "application/json" } 答复如下: 通知URL 'https://xxx/callback?validationtoken=N2FhY2JhNmItYTc2MC00MGUwLThmOGItZWQ2N2Q5Nzg5Y2Y2'validation失败System.Net.WebException : 该请求被中止:无法创buildSSL / TLS安全通道。 在System.Net.HttpWebRequest.GetResponse()在Microsoft.Exchange.OData.Model.Notifications.PushNotification.PushSubscriptionCallbackUrlValidationHelper.SendRequestAndVerifyResponse(Uri callbackUrl,PushSubscription pushSubscription)。 当我通过Postman请求通知URL时,它将正常工作并返回200状态的validation令牌。 SSL证书是用我们encryption生成的。

Microsoft Graph – 筛选开始/date时间

使用Microsoft Graph的nodejs库,尝试查询我的日历并返回下一个5个事件。 查询设置: client .api('/me/events') .header('X-AnchorMailbox', email) .top(5) .filter('Start/DateTime ge 2017-05-26T00:00:00') .select('subject,start,end') .orderby('start/dateTime DESC') 执行时graphics回复: "code":"BadRequest","message":"The DateTimeOffset text '2017-05-26T00:00:00.000' should be in format 'yyyy-mm-ddThh:mm:ss('.'s+)?(zzzzzz)?' and each field value is within valid range." 是否2017-05-26T00:00:00不符合'yyyy-mm-ddThh:mm:ss('.'s+)?(zzzzzz)?' ?

Microsoft Graph获取基本联系人(Node.js)

我想通过Microsoft Graph从我的Microsoft帐户中查看我的联系人。 https://github.com/microsoftgraph/nodejs-connect-rest-sample中的代码我在utils / graphHelper.js中添加getUserContact函数 function getUserContact(accessToken, callback) { request .get('https://graph.microsoft.com/v1.0/me/contacts') .set('Authorization', 'Bearer ' + accessToken) .end((err, res) => { callback(err, res); }); } 并将其添加到graphHelper.js文件的底部 exports.getUserContact = getUserContact; 并在文件夹路由 – > index.js被修改 router.get('/token', passport.authenticate('azuread-openidconnect', { failureRedirect: '/' }), (req, res) => { graphHelper.getUserData(req.user.accessToken, (err, user) => { if (!err) { req.user.profile.displayName = user.body.displayName; req.user.profile.emails = […]

日历中的Outlook API时间差异

我在使用Calendar API的时候遇到了问题,特别是使用了Calendar API。 我用UTC格式发送date,当它们被添加到日历中时,我与发送date有所不同。 我在法国,原来的date是UTC + 2。 我在UTC转换,并使用此configuration请求: var options = { url: "https://outlook.office.com/api/v2.0/me/calendars/" + workspace.calendarId + "/events?$Select=Id", method: "POST", headers: { "authorization": "Bearer " + host.outlookCalAccessToken, "accept" : "application/json", "ContentType" : "application/json" }, json:{ "Subject" : event.summary, "Body" : { "ContentType" : "Text", "Content" : event.description }, "Start" : { "DateTime":start, "TimeZone" : "OriginStartTimeZone" […]

如何使用Microsoft Graph API在Outlook上创build日历事件?

我有一个与Office365集成的应用程序,我试图使用Microsoft Graph API在Outlook日历上创build日历事件。 这是我到目前为止: request.post({ url:'https://graph.microsoft.com/v1.0/me/events', form: { "Id": null, "Subject": "Discuss the Calendar REST API", "Body": { "ContentType": "Text", "Content": "This is some content." }, "Start": { "DateTime": "2016-01-24T18:00:00", "TimeZone": "Pacific Standard Time" }, "End": { "DateTime": "2016-01-25T19:00:00", "TimeZone": "Pacific Standard Time" }, "ShowAs": "Free", "IsReminderOn":false }, headers: { "Authorization": "Bearer " + access_token, […]