如何列出所有Google目录订阅频道
我正在努力与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
相关的任何订阅(手表)频道,以创建新的观察者?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,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.