Method: Webhookdb::Replicator::Base#webhook_response
- Defined in:
- lib/webhookdb/replicator/base.rb
#webhook_response(request) ⇒ Webhookdb::WebhookResponse
Given a Rack request, return the webhook response object. Usually this performs verification of the request based on the webhook secret configured on the service integration. Note that if skip_webhook_verification is true on the service integration, this method always returns 201.
122 123 124 125 |
# File 'lib/webhookdb/replicator/base.rb', line 122 def webhook_response(request) return Webhookdb::WebhookResponse.ok(status: 201) if self.service_integration.skip_webhook_verification return self._webhook_response(request) end |