1. Go to this page and download the library: Download genesis-global/optimove 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/ */
genesis-global / optimove example snippets
use GenesisGlobal\Optimove\Client;
$username = 'foo';
$password = 'password';
$client = new Client($username, $password);
$promotions = [
["PromoCode" => "WB23", "PromotionName" => "Welcome back Promo"}],
["PromoCode" => "NV10", "PromotionName" => "New VIP 10% Discount"]
];
$client->promotions()->AddPromotions($promotions);
use GenesisGlobal\Optimove\Client;
$username = 'foo';
$password = 'password';
$client = new Client($username, $password);
use GenesisGlobal\Optimove\Client;
$username = 'foo';
$password = 'password';
$client = new Client($username, $password);
$general = $client->general();
use GenesisGlobal\Optimove\Client;
$username = 'foo';
$password = 'password';
$client = new Client($username, $password);
$promotions = $client->promotions();