WebService::Async::CustomerIO::Customer - Class for working with customer.
Creates customer object. This method just creates an object, to sent this data to api, after creation should be called upsert method.
Usage: new(%params) -> obj
new(%params) -> obj
parameters:
id - the unique identifier for the customer.
id
email - optional. the email address of the user.
email
created_at - optional. the unix timestamp from when the user was created in your system
created_at
attributes - hashref which contains custom attributes to define the customer.
attributes
Create or update a customer
Usage: upsert() -> Future()
upsert() -> Future()
Set a customer attribute
Usage: set_attribute($name, $value) -> Future()
set_attribute($name, $value) -> Future()
Remove customer attribute
Usage: remove_attribute($name, $value) -> Future()
remove_attribute($name, $value) -> Future()
Suppress the customer. All events related to this customer wil be ignored by API.
Usage: suppress() -> Future()
suppress() -> Future()
Unsuppress the customer.
Usage: unsuppress() -> Future()
unsuppress() -> Future()
Create or update a customer device
Usage: upsert_device(%params) -> Future()
upsert_device(%params) -> Future()
Parameters:
id - The unique token for the user device.
platform - The platform for the user device. Allowed values are 'ios' and 'android'.
platform
last_used - Optional. UNIX timestamp representing the last used time for the device. If this is not included we default to the time of the device identify.
last_used
Delete a customer device
Usage: delete_device($id) -> Future()
delete_device($id) -> Future()
Track a customer event
Usage: emit_event(%params) -> Future()
emit_event(%params) -> Future()
- name: The name of the event to track - type: Optional. Used to change event type. For Page View events set to "page". - data: Optional. Custom data to include with the event.
Delete a customer
Usage: delete_customer() -> Future()
delete_customer() -> Future()
To install WebService::Async::CustomerIO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Async::CustomerIO
CPAN shell
perl -MCPAN -e shell install WebService::Async::CustomerIO
For more information on module installation, please visit the detailed CPAN module installation guide.