Back to Documentation Overview
campaignSchedule
public static campaignSchedule(string uid, string cid, string schedule_time)
Schedule a campaign to be sent in the future
- Section:
- Campaign Related
- Parameters:
uid the id for your user account. Get by calling login($user, $pass) cid the id for the campaign to schedule schedule_time the time to schedule the campaign - in YYYY-MM-DD HH:II:SS format in GMT - Returns:
- boolean - true on success
- <?php
- /**
- This Example shows how to Schedule a Campaing to be sent at a specified time in the
- future using the XML-RPC service and do some basic error checking.
- Note that we are using the PEAR XML-RPC client and recommend others do as well.
- **/
- require_once 'XML/RPC2/Client.php';
- include('inc/config.inc.php'); //contains username & password
- $uuid = $client->login($username,$password);
- try {
- // note that the Schedule date MUST be formatted like this:
- // '2008-04-01 09:05:21' means 'April 1st, 2008'
- $result = $client->campaignSchedule($uuid, $campaignId, $schedule_for);
- } catch (XML_RPC2_FaultException $e){
- }
- ?>
Examples (1)
download example code[1] xml-rpc_campaignSchedule.php
|
Add New Note
User Contributed Notes for
campaignSchedule |
|---|
| No notes, yet... Will you be the first?? |