mirror of
https://github.com/chatwoot/chatwoot.git
synced 2026-06-25 21:09:04 +08:00
8 lines
208 B
Ruby
8 lines
208 B
Ruby
class Webhooks::Trigger
|
|
def self.execute(url, payload)
|
|
RestClient.post(url, payload.to_json, { content_type: :json, accept: :json })
|
|
rescue StandardError => e
|
|
Raven.capture_exception(e)
|
|
end
|
|
end
|