campaignReplicate(string apikey, string cid)
Replicate a campaign.
| Section | Campaign Related |
|---|
| Parameters | mcapi_campaignReplicate.php|
|---|---|
| apikey | a valid API Key for your user account. Get by visiting your API dashboard |
| cid | the Campaign Id to replicate |
| Returns | |
|---|---|
| string | the id of the replicated Campaign created, otherwise an error will be thrown |
[1] mcapi_campaignReplicate.php
<?php /** This Example shows how to send Replicate Campaigns via the MCAPI class. **/ require_once 'inc/MCAPI.class.php'; require_once 'inc/config.inc.php'; //contains apikey $retval = $api->campaignReplicate($campaignId); if ($api->errorCode){ } else { } ?>