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
Section
Security Related Methods

Parameters
string tokenYour Benchmark Email token

Returns
arrayReturns an array with the results.


Examples
download example code
xmlrpc_subAccountGetList.php


  1. <?php
  2. /**
  3. This Example shows how to get the List of Subaccounts for your account using XML-RPC.
  4. Note that we are using the PEAR XML-RPC client and recommend others do as well.
  5. **/
  6. require_once 'XML/RPC2/Client.php';
  7. require_once 'inc/config.php';
  8. $client = XML_RPC2_Client::create($apiURL);
  9. $token = $client->login($apiLogin, $apiPassword);
  10. $clientid = "XXXX"; \\ This should be a number
  11. $accountstruct = $client->subAccountGetList($token);
  12. print_r($accountstruct);
  13. ?>