Activation ofautoresponder that has been paused previously.
campaignResume(string $cid) : boolean
campaignResume($cid); header("Content-Type: text/plain"); if ($api->errorCode) { echo "Unable to load campaignResume()!\n"; echo "\tCode=" . $api->errorCode . "\n"; echo "\tMsg=" . $api->errorMessage . "\n"; } else { echo "Campaign Resumed!\n"; }
new xmlrpcval($apikey), 'cid' => new xmlrpcval($campaignId) ), 'struct'); $f = new xmlrpcmsg('campaignResume', array($v)); $c = new xmlrpc_client($apiUrl["path"], $apiUrl['host'], 80); $c->setDebug($debug); $r = &$c->send($f); header("Content-Type: text/plain"); if (!$r->faultCode()) { $retval = php_xmlrpc_decode($r->value()); echo "Campaign Resumed!\n"; } else { echo "Unable to run campaignResume()!\n"; echo "\tCode=" . $r->faultCode() . "\n"; echo "\tMsg=" . $r->faultString() . "\n"; }
from lib.config import * #contains apikey from lib.MGAPI import MGAPI # This Example shows how to ping using the MGAPI.php class and do some basic error checking. api = MGAPI(apikey) cid = campaignId retval = api.campaignResume(cid) if api.errorCode: print "Unable to load campaignResume()!" print "\tCode=", api.errorCode print "\tMsg=", api.errorMessage else: print "Campaign Resumed!"
Active autoresponder is paused.
campaignPause(string $cid) : boolean
campaignPause($cid); header("Content-Type: text/plain"); if ($api->errorCode) { echo "Unable to load campaignPause()!\n"; echo "\tCode=" . $api->errorCode . "\n"; echo "\tMsg=" . $api->errorMessage . "\n"; } else { echo "Campaign Paused!\n"; }
new xmlrpcval($apikey), 'cid' => new xmlrpcval($campaignId) ), 'struct'); $f = new xmlrpcmsg('campaignPause', array($v)); $c = new xmlrpc_client($apiUrl["path"], $apiUrl['host'], 80); $c->setDebug($debug); $r = &$c->send($f); header("Content-Type: text/plain"); if (!$r->faultCode()) { $retval = php_xmlrpc_decode($r->value()); echo "Campaign Paused!\n"; } else { echo "Unable to run campaignPause()!\n"; echo "\tCode=" . $r->faultCode() . "\n"; echo "\tMsg=" . $r->faultString() . "\n"; }
from lib.config import * #contains apikey from lib.MGAPI import MGAPI # This Example shows how to ping using the MGAPI.php class and do some basic error checking. api = MGAPI(apikey) cid = campaignId retval = api.campaignPause(cid) if api.errorCode: print "Unable to load campaignPause()!" print "\tCode=", api.errorCode print "\tMsg=", api.errorMessage else: print "Campaign Paused!"