Class: CustomerioAPI::CustomerEventResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/customerio_api/resources/customer_event_resource.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#get_request, #handle_response, #initialize, #post_request, #put_request

Constructor Details

This class inherits a constructor from CustomerioAPI::Resource

Instance Method Details

#create(identifier:, attributes:) ⇒ Object

client.customer_event.create(identifier: id | email | cio_id, attributes: “event_a”, data: {“key”: “value”})



6
7
8
# File 'lib/customerio_api/resources/customer_event_resource.rb', line 6

def create(identifier:, attributes:)
  post_request("customers/#{identifier}/events", body: attributes)
end