在 Microsoft Graph API(版本1.0)中的 LifecycleNotificationUrl。

huangapple go评论62阅读模式
英文:

LifecycleNotificationUrl in microsoft graph api ( version 1.0)

问题

我在我的应用程序中使用 Microsoft Graph API(版本1.0)。我已经订阅了用户收件箱的更改通知。但是现在我需要在用户更改了他的 Outlook 密码或者订阅需要重新创建时得到通知。

因此,我将我的 Graph SDK(Java)更新到了以下最新版本:

com.microsoft.graph - 2.3.1
com.microsoft.graph - 0.2.0

在添加了 lifecycleNotificationUrl 后,我没有在用户更改密码时收到 Webhooks 通知。

这里 是我用来参考的文档链接。

如何解决这个问题?

英文:

I am using microsoft graph apis (version 1.0) in my application. I am subscribed to the change notifications of inbox of a user. But now I need to know whenever the user changed his outlook password or whenever the subscription needs to be recreated.

So I updated my graph sdk(Java) to the latest versions, which are below

com.microsoft.graph - 2.3.1
com.microsoft.graph - 0.2.0

After adding lifecycleNotificationUrl, I am not getting the webhooks notifications whenever the users password changed.

Here is the document link which i used to refer.

How can I resolve this?

答案1

得分: 2

谢谢您的帮助!

在订阅创建中添加了已删除的“更改类型”后,我已经修复了它。
如果没有“已删除”的更改类型,订阅移除或缺失的通知将不会被触发。
微软文档中没有提到生命周期通知仅会在“已删除”更改类型上触发。

希望这能帮助其他遇到类似问题的人。

谢谢。

英文:

Thanks for your help!

I have fixed it after adding the deleted "change type" in subscription creation.
Subscription removed or missing notifications are not triggering without "deleted" change type.

This is not mentioned in the micro-soft docs that the life-cycle notifications will be triggered only on deleted change type.

Hope this helps others who are facing this type of issue.

Thanks.

huangapple
  • 本文由 发表于 2020年10月27日 20:28:28
  • 转载请务必保留本文链接:https://go.coder-hub.com/64554431.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定