WebService::Async::CustomerIO - unofficial support for the Customer.io service
Creates a new API client object
Usage: new(%params) -> obj
new(%params) -> obj
Parameters:
site_id
api_key
api_token
There is 2 stable API for Customer.io, if you need to add a new method check the documentation for API which endpoint you need to use:
Tracking API - Behavioral Tracking API is used to identify and track customer data with Customer.io.
Tracking API
Regular API - Currently, this endpoint is used to fetch list of customers given an email and for sending API triggered broadcasts.
Regular API
Sending request to Tracking API end point.
Usage: tracking_request($method, $uri, $data) -> future($data)
tracking_request($method, $uri, $data) -> future($data)
Sending request to Regular API end point with optional limit type.
Usage: api_request($method, $uri, $data, $limit_type) -> future($data)
api_request($method, $uri, $data, $limit_type) -> future($data)
Creating new customer object
Usage: new_customer(%params) -> obj
new_customer(%params) -> obj
Creating new trigger object
Usage: new_trigger(%params) -> obj
new_trigger(%params) -> obj
Add people to a manual segment.
Usage: add_to_segment($segment_id, @$customer_ids) -> Future()
add_to_segment($segment_id, @$customer_ids) -> Future()
remove people from a manual segment.
usage: c<< remove_from_segment($segment_id, @$customer_ids) -> future()>>
Query Customer.io API for list of clients, who has requested email address.
usage: c<< get_customers_by_email($email)->future([$customer_obj1, ...])>>
add_child, adopt_future, adopted_futures, can_event, children, configure_unknown, debug_printf, get_loop, invoke_error, invoke_event, loop, make_event_cb, maybe_invoke_event, maybe_make_event_cb, new, notifier_name, parent, remove_child, remove_from_parent
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.