Class: Hubspot::Event
- Inherits:
-
Object
- Object
- Hubspot::Event
- Defined in:
- lib/hubspot/event.rb
Overview
HubSpot Events HTTP API
https://developers.hubspot.com/docs/methods/enterprise_events/http_api
Constant Summary collapse
- POST_EVENT_PATH =
'/v1/event'
Class Method Summary collapse
Class Method Details
.trigger(event_id, email, options = {}) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/hubspot/event.rb', line 13 def trigger(event_id, email, = {}) default_params = { _n: event_id, _a: Hubspot::Config.portal_id, email: email } [:params] = default_params.merge([:params] || {}) Hubspot::EventConnection.trigger(POST_EVENT_PATH, ).success? end |