如何列出所有Google目录订阅频道

发布于 2025-01-29 18:46:09 字数 832 浏览 1 评论 0 原文

我正在努力与Google Directory集成并创建订阅频道,以使用此API https://developers.google.com/admin-sdk/directory/refereny/reference/rest/rest/v1/users/watch

POST https://admin.googleapis.com/admin/directory/v1/users/watch

我创建了一些频道,没有他们的> ID ResourceId 根据此文档停止它们,现在我无法创建任何新频道 https://develovelers.google.com/admin-sdk/directory/referency/reference/rest/rest/v1/channels/stop

't找到任何API端点,以列出我当前的所有客户ID 频道以阻止它们。如何停止与客户ID 相关的任何订阅(手表)频道,以创建新的观察者?

I'm working on integration with Google Directory and create subscription channels to watch users updates using this API https://developers.google.com/admin-sdk/directory/reference/rest/v1/users/watch

POST https://admin.googleapis.com/admin/directory/v1/users/watch

I created some channels and don't have their id and resourceId to stop them according to this documentation and now I can't create any new channels https://developers.google.com/admin-sdk/directory/reference/rest/v1/channels/stop

I didn't find any API endpoint to list all my current customer id channels to stop them. How can I stop any subscription (watch) channels related to the customer id so I can create new watchers?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

欢烬 2025-02-05 18:46:09

不幸的是,Google尚未启用对给定管理用户/域启用的列表列表(即:列表方法)的活动订阅的支持。他们唯一暴露的方法是停止现有订阅的停止方法,但它要求呼叫者已经知道与订阅相关的频道元数据。

好消息是,如果您在创建时没有存储此信息,则应该能够找到所需的参数作为事件通知的一部分。我相信他们可能会伴随着每个通知活动的标题。

Unfortunately, Google has not enabled support for a way to list (i.e: a LIST method) active subscriptions enabled for a given admin user/domain. The only method they've exposed is a STOP method to stop an existing subscription, but it requires the caller already know the channel metadata associated with the subscription.

The good news here is if you did not store this information upon creation, you should be able to find the required parameters as a part of an event notification. I believe they might be in the headers accompanying each notification event.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文