tokenAdd
public static bool tokenAdd(string userName, string password, string token)
Add a token for the user.
| Parameters |
| string userName | Your Benchmark Email user name |
| string password | Your Benchmark Email password |
| string token | Enter your own token. Should be atleast 6 characters long. To delete an existing token use the tokenDelete method. |
| Returns |
| bool | Returns true if the token was set. |
- <?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);
- $allOk = $client->tokenAdd($apiLogin, $apiPassword, "secrettoken");
- ?>