PHP code example of dotdigital / dotdigital-php

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

    

dotdigital / dotdigital-php example snippets


# app/index.php
new \Dotdigital\V2\Client();
$dotdigital::setApiUser('[email protected]');
$dotdigital::setApiPassword('');
$dotdigital::setApiEndpoint('https://r1-api.dotdigital.com');

$accountInfo = $dotdigital->accountInfo->show();

composer