文件名称:delayed_webhook:使用 HTTParty 和 delay_job 执行健壮的 webhook
文件大小:11KB
文件格式:ZIP
更新时间:2024-07-24 06:48:12
Ruby
delay_webhook 触发 webhook 回调,然后重试直到它们被成功处理。 基本用法 使用DelayedWebhook.enqueue! 为您的应用程序运行 webhook: method = :get # HTTP method to use (must be supported by HTTParty) path = ... # Webhook target, passed as the first argument to the method above options = { ... } # HTTParty options, passed as the second argument to the method above DelayedWebhook.enqueue! method, path, options 入enqueue! 方法将 webhook 添加到
【文件预览】:
delayed_webhook-master
----.travis.yml(70B)
----Rakefile(188B)
----test()
--------test_helper.rb(331B)
--------delayed_webhook()
----LICENSE(1KB)
----Gemfile(38B)
----delayed_webhook.gemspec(1KB)
----.gitignore(47B)
----lib()
--------delayed_webhook.rb(554B)
--------delayed_webhook()
----README.md(3KB)