class Hubspot::Event
HubSpot
Events HTTP API
{developers.hubspot.com/docs/methods/enterprise_events/http_api}
Constants
- POST_EVENT_PATH
Public Class Methods
trigger(event_id, email, options = {})
click to toggle source
# File lib/hubspot/event.rb, line 13 def trigger(event_id, email, options = {}) default_params = { _n: event_id, _a: Hubspot::Config.portal_id, email: email } options[:params] = default_params.merge(options[:params] || {}) Hubspot::EventConnection.trigger(POST_EVENT_PATH, options).success? end