PHP code example of klicktipp / php-connector

1. Go to this page and download the library: Download klicktipp/php-connector 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/ */

    

klicktipp / php-connector example snippets






$k = new KlicktippConnector();
$k->login('username', 'password');

$subscriber = $k->subscribe(
    '[email protected]',
    123,                  // list ID (optional)
    456,                  // tag ID (optional)
    ['fieldFirstName' => 'Max']
);

print_r($subscriber);

$k->logout();

$k = new KlicktippPartnerConnector($username, $developer_key, $customer_key);

if (!$result) {
    echo $k->get_last_error();
}
bash
composer