Class: Hubspot::CustomEventConnection
- Inherits:
-
Connection
- Object
- Connection
- Hubspot::CustomEventConnection
- Defined in:
- lib/hubspot/connection.rb
Class Method Summary collapse
Methods inherited from Connection
delete_json, get_json, post_json, put_json
Class Method Details
.trigger(path, opts) ⇒ Object
152 153 154 155 156 |
# File 'lib/hubspot/connection.rb', line 152 def self.trigger(path, opts) url = generate_url(path, opts[:params], { hapikey: true }) headers = (opts[:headers] || {}).merge('content-type': 'application/json') post(url, body: opts[:body].to_json, headers: headers) end |