PHP code example of alnv / contao-cleverreach-api

1. Go to this page and download the library: Download alnv/contao-cleverreach-api 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/ */

    

alnv / contao-cleverreach-api example snippets

 php
    
    $GLOBALS['TL_CONFIG']['cleverreachClientId'] = '';
    $GLOBALS['TL_CONFIG']['cleverreachClientSecret'] = '';
    $GLOBALS['TL_CONFIG']['cleverreachAuthUrl'] = 'https://rest.cleverreach.com/oauth/authorize.php';
    $GLOBALS['TL_CONFIG']['cleverreachTokenUrl'] = 'https://rest.cleverreach.com/oauth/token.php';