1. Go to this page and download the library: Download themarketer/api-client 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/ */
themarketer / api-client example snippets
use TheMarketer\ApiClient\Client;
$client = new Client([
'customerId' => 'THE_MARKETER_ACCOUNT_ID', // query `u` on REST
'restKey' => 'REST_KEY', // query `k` on REST
'trackingKey' => 'TRACKING_KEY', // optional: for tracking events
'maxRetryAttempts' => 1, // optional
]);
// Examples of accessing the grouped APIs
$client->subscribers()->addSubscriber([/* … */]);
$client->orders()->saveOrder([/* … */]);
$client->transactionals()->sendEmail([/* … */]);
$ok = $client->checkCredentials('TRACKING_KEY');
$ok = $client->checkApiCredentials();
bash
php smoke.php
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.