Class: HubSpotSDK::Resources::Events::Send
- Inherits:
-
Object
- Object
- HubSpotSDK::Resources::Events::Send
- Defined in:
- lib/hubspot_sdk/resources/events/send.rb
Instance Method Summary collapse
-
#batch_send(inputs:, request_options: {}) ⇒ nil
Send multiple event occurrences at once.
-
#initialize(client:) ⇒ Send
constructor
private
A new instance of Send.
-
#send_(event_name:, properties:, email: nil, object_id_: nil, occurred_at: nil, utk: nil, uuid: nil, request_options: {}) ⇒ nil
Some parameter documentations has been truncated, see Models::Events::SendSendParams for more details.
Constructor Details
#initialize(client:) ⇒ Send
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Send.
68 69 70 |
# File 'lib/hubspot_sdk/resources/events/send.rb', line 68 def initialize(client:) @client = client end |
Instance Method Details
#batch_send(inputs:, request_options: {}) ⇒ nil
Send multiple event occurrences at once.
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/hubspot_sdk/resources/events/send.rb', line 17 def batch_send(params) parsed, = HubSpotSDK::Events::SendBatchSendParams.dump_request(params) @client.request( method: :post, path: "events/2026-03/send/batch", body: parsed, model: NilClass, options: ) end |
#send_(event_name:, properties:, email: nil, object_id_: nil, occurred_at: nil, utk: nil, uuid: nil, request_options: {}) ⇒ nil
Some parameter documentations has been truncated, see Models::Events::SendSendParams for more details.
Send data for a single custom event occurrence.
54 55 56 57 58 59 60 61 62 63 |
# File 'lib/hubspot_sdk/resources/events/send.rb', line 54 def send_(params) parsed, = HubSpotSDK::Events::SendSendParams.dump_request(params) @client.request( method: :post, path: "events/2026-03/send", body: parsed, model: NilClass, options: ) end |