Back to Documentation Overview
campaignSendNow
public static campaignSendNow(string apikey, string cid)
Send a given campaign immediately. For RSS campaigns, this will "start" them.
- Section:
- Campaign Related
- Parameters:
apikey a valid API Key for your user account. Get by visiting your API dashboard cid the id of the campaign to resume - Returns:
- boolean - true on success
- <?php
- /**
- This Example shows how to immediately send a Campaign via the MCAPI class.
- **/
- require_once 'inc/MCAPI.class.php';
- require_once 'inc/config.inc.php'; //contains apikey
- $retval = $api->campaignSendNow($campaignId);
- if ($api->errorCode){
- } else {
- }
- <?php
- /**
- This Example shows how to immediately Send a prepared Campaign using XML-RPC.
- Note that we are using the PEAR XML-RPC client and recommend others do as well.
- **/
- require_once 'XML/RPC2/Client.php';
- require_once 'inc/config.inc.php';
- try {
- $result = $client->campaignSendNow($apikey, $campaignId);
- } catch (XML_RPC2_FaultException $e){
- }
- ?>
Examples (2)
download example code[1] mcapi_campaignSendNow.php
[2] xml-rpc_campaignSendNow.php
|
Add New Note
User Contributed Notes for
campaignSendNow |
|---|
| No notes, yet... Will you be the first?? |