subAccountGetList
public static array subAccountGetList(string token)
get the List of Subaccounts for your Benchmark user, please note you need to be approved by Benchmark for being able to create/edit Subaccounts
| Parameters |
| string token | Your Benchmark Email token |
| Returns |
| array | Returns an array with the results. |
- <?php
- /**
- This Example shows how to get the List of Subaccounts for your account 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);
- $clientid = "XXXX"; \\ This should be a number
- $accountstruct = $client->subAccountGetList($token);
- print_r($accountstruct);
- ?>