Class: CoeusAnalytics::Events
- Inherits:
-
Object
- Object
- CoeusAnalytics::Events
- Defined in:
- lib/coeus_analytics.rb
Class Method Summary collapse
Class Method Details
.send_event(integration_id, event_type, payload) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/coeus_analytics.rb', line 6 def self.send_event(integration_id, event_type, payload) data = { integration_id: integration_id, event: event_type, payload: payload } result = HTTParty.post( "https://getcoeus.com/api/v1/events", body: data.to_json, headers: { "Content-Type": "application/json" }, verify: false ) result.code end |