Sha256: b17306289fd3a0c74d3cbed2ed54dfd5f86e4f59e73e8cc2e9ef23b0528c07ce
Contents?: true
Size: 537 Bytes
Versions: 14
Compression:
Stored size: 537 Bytes
Contents
require 'hubspot/utils' module Hubspot # # HubSpot Events HTTP API # # {https://developers.hubspot.com/docs/methods/enterprise_events/http_api} # class Event POST_EVENT_PATH = '/v1/event' class << self 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 end end end
Version data entries
14 entries across 14 versions & 1 rubygems