emailCategoryGetList
public static string emailCategoryGetList(string token)
Returns All the avaliable email Categories.
| Parameters |
| string token | A valid token for your account. To generate a token, use the login method. |
| Returns |
| string | The array containing the email template category details.
| string sequence | Sequence of the email category | | string id | ID of the email Template category | | string name | Name of the email Template category | | string count | Number of templates available in the category | | string newFlag | Either New Template or Old |
|
- <?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);
-
- $emailCategoryList = $client->emailCategoryGetList($token);
- foreach($emailCategoryList as $rec) {
- echo $rec['sequence'] . "] Email Cagegory Name: " . $rec['name'] . "(" . $rec['id'] . ")";
- echo "\t Number of Templates:" . $rec['count'] . "(" . $rec['newFlag'] . ")";");
- echo "
";
- }
- ?>