subAccountCreate
public static integer subAccountCreate(string token, array accountstruct)
Register Subaccount for 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 |
| array accountstruct | Your Benchmark Email Subaccount Array |
| Returns |
| integer | Returns -1 if there is an error |
- <?php
- /**
- This Example shows how to Register a new Subaccount 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);
- $accountstruct = array();
- $accountstruct["email"] = "email";
- $accountstruct["firstname"] = "firstname";
- $accountstruct["lastname"] = "lastname";
- $accountstruct["login"] = "login";
- $accountstruct["password"] = "password";
- $accountstruct["phone"] = "phone";
- $client->subAccountCreate($token, $accountstruct);
- ?>