WebService::Async::CustomerIO - unofficial support for the Customer.io service
Creates a new API client object
Usage: 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.Regular API
- Currently, this endpoint is used to fetch list of customers given an email and for sending API triggered broadcasts.
Sending request to Tracking API end point.
Usage: 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)
Creating new customer object
Usage: new_customer(%params) -> obj
Creating new trigger object
Usage: new_trigger(%params) -> obj
Creating new customer object
Usage: new_customer(%params) -> obj
Add people to a manual segment.
Usage: 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, ...]) >>