autoresponderUpdate
public static bool autoresponderUpdate(string token, int status ,array Autoresponder)
Update the autoresponder whose id has been specified.
| Parameters |
| string token | A valid token for your account. To generate a token, use the login method. |
| int status | Set it as 1 if you need to activate the Autoresponder else set it as 0. |
| array Autoresponder | The array containing the contact details.| string autoresponderName | The autoresponder name | | string fromName | Name displayed as "from" in your contact's in-box | | string fromEmail | Email displayed as "from address" in your contact's in-box | | bool webpageVersion | optional. Include a link to view a web version of the email. Defaults to false. | | bool permissionReminder | optional. If this is specified as true then the permissionReminderMessage must be set | | string permissionReminderMessage | optional. Permission reminder message text, this must be set if permissionReminder is enabled |
|
| Returns |
| bool | returns true is update is successful else returns false |
- <?php
- /**
- This Example shows how to authenticate a user 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.php';
- $client = XML_RPC2_Client::create($apiURL);
- $token = $client->login($apiLogin, $apiPassword);
-
- $Autoresponder = array();
- $Autoresponder['autoresponderName'] = 'Autoresponder 1 update';
- $Autoresponder['fromName'] = 'Joe de maggio';
- $Autoresponder['fromEmail'] = 'yname@yemail.com';
- $Autoresponder['webpageVersion'] = true;
- $Autoresponder['permissionReminder'] = true;
- $Autoresponder['permissionReminderMessage'] = 'Please click here to confirm, Confirm my subscription.';
- $flag = $client->autoresponderUpdate($token,1,$Autoresponder);
- ?>