tokenGet
public static array tokenGet(string userName, string password)
Fetch all tokens for the user.
Section
Security Related Methods

Parameters
string userNameYour Benchmark Email user name
string passwordYour Benchmark Email password

Returns
arrayReturns a string array with all the active tokens of the user. To add new tokens use the tokenAdd method.


Examples
download example code
xmlrpc_tokenGet.php


  1. <?php
  2. /**
  3. This Example shows how to authenticate a user 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. $tokens = $client->tokenGet($apiLogin, $apiPassword);
  10. print_r($tokens);
  11. ?>