subAccountUpdate
public static integer subAccountUpdate(string token, array accountstruct)
Update Subaccount details 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 Update Subaccount details 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 = array();
- $accountstruct["email"] = "email";
- $accountstruct["firstname"] = "firstname";
- $accountstruct["lastname"] = "lastname";
- $accountstruct["login"] = "login";
- $accountstruct["password"] = "password";
- $accountstruct["phone"] = "phone";
- $accountstruct["clientid"] = "$clientid";
- $client->subAccountUpdate($token, $accountstruct);
- ?>