onedrive for business webhooks

时间:2017-10-06 13:32:15

标签: webhooks onedrive

我似乎找不到为onedrive订阅webhooks的正确方法。

我知道端点网址与常规onedrive不同。 (https://docs.microsoft.com/en-us/onedrive/developer/rest-api/concepts/direct-endpoint-differences

因此,根据文档,订阅webhooks的端点应该如下:

的https:// {租户} -my.sharepoint.com/_api/v2.0/subscriptions

但是当我向这个端点发送POST请求时,我得到了404.

通过此端点获取驱动器项目按预期工作。 (HTTPS:// {租户} -my.sharepoint.com/_api/v2.0//drive/special/approot)。 我似乎无法访问“订阅”端点。

我做错了什么?

1 个答案:

答案 0 :(得分:0)

订阅会应用于商品,因此您需要:

https://{tenant}-my.sharepoint.com/_api/v2.0/drive/root/subscriptions

在这方面,文档似乎有点含糊不清。

相关问题