【发布时间】:2012-06-29 19:04:18
【问题描述】:
我无法删除通过 Shopify API 创建的 Webhook。 为了创建 webhook,我在 RoR 中使用了以下代码:
webhook = ShopifyAPI::Webhook.create(format: "json", topic: "orders/create", address: "some address")
我能够发送一个 GET 请求并检索所有已创建的 webhook。但是当我发送带有相应 ID 的 DELETE 请求时,响应是“404 Not Found - errors: Not found”。 我正在使用 Firefox 的 RESTClient 发送 DELETE 请求,格式如下:
DELETE https://api_key:shared-secret@hostname/admin/webhooks/1855159.json
也许它不起作用,因为 webhook 是通过 API 创建的。还有其他方法可以删除 webhook 吗? 提前致谢!
【问题讨论】:
标签: ruby-on-rails shopify webhooks