1. Go to this page and download the library: Download printu/customerio library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
printu / customerio example snippets
pplication code...
use Customerio\Client;
$client = new Client('YOUR_API_KEY', 'YOUR_SITE_ID');
/*
* To authenticate, provide your key as a Bearer token in a HTTP Authorization header.
* You can create and manage your API keys by visiting your App API Keys page directly or by clicking the Integrations
* link in the left-hand menu of your Customer.io account and choosing Customer.io API > Manage API Credentials > App API Keys.
*/
$client->setAppAPIKey('APP_KEY');
use Customerio\Client;
$client = new Client('YOUR_API_KEY', 'YOUR_SITE_ID', ['region' => 'eu']);