Back to Documentation Overview
campaignTemplates
public static campaignTemplates(string uid)
Retrieve all templates defined for your user account
- Section:
- Campaign Related
- Parameters:
- uid the id for your user account. Get by calling login($user, $pass)
- Returns:
- array - An array of structs, one for each template (see Returned Fields for details)
- Returned Fields:
integer id Id of the template string name Name of the template string layout Layout of the template - "basic", "left_column", "right_column", or "postcard" array sections associative array of editable sections in the template that can accept custom HTML when sending a campaign - <?php
- /**
- This Example shows how to Retrieve all of your Campaign Templates 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 {
- $result = $client->campaignTemplates($uuid);
- } catch (XML_RPC2_FaultException $e){
- }
Examples (1)
download example code[1] xml-rpc_campaignTemplates.php
|
Add New Note
User Contributed Notes for
campaignTemplates |
|---|
| No notes, yet... Will you be the first?? |