PHP code example of jongotlin / ekopost
1. Go to this page and download the library: Download jongotlin/ekopost 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/ */
jongotlin / ekopost example snippets
$ekopost = new \JGI\Ekopost\Ekopost(new \GuzzleHttp\Client(), $apiKey, false);
$campaign = new \JGI\Ekopost\Model\Campaign();
$campaign = $ekopost->campaigns()->create($campaign);
echo $campaign->getId();