Class: CustomerioAPI::TrackResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/customerio_api/resources/track_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

#batch(attributes) ⇒ Object

v2_client.track.batch(attributes) Response: {}



22
23
24
# File 'lib/customerio_api/resources/track_resource.rb', line 22

def batch(attributes)
  post_request('batch', body: { batch: attributes }).body
end

#entity(attributes) ⇒ Object

Example: Create/Update a Shop object attributes = { type: ‘object’, action: ‘identify’, identifiers: { object_type_id: ‘2’, object_id: ‘linh-us’}, attributes: “linh-us” } v2_client.track.entity(attributes) Response: {}



8
9
10
# File 'lib/customerio_api/resources/track_resource.rb', line 8

def entity(attributes)
  post_request('entity', body: attributes).body
end