$secret = $response->response->key;
 echo "SECRET KEY FOR PROTECTIMUS MOBILE TOKEN =>>> " . $secret . "<br/>";
 echo "<br/>CREATING A TOKEN<br/>";
 $response = $api->addSoftwareToken(null, null, "MAIL", "*****@*****.**", "Mail token", null, null, null, null, null, null);
 echo print_r($response, true) . "<br/>";
 $tokenId = $response->response->id;
 echo "ID OF THE CREATED TOKEN =>>> " . $tokenId . "<br/>";
 // to add hardware token you must own it, because you need to
 // provide one-time password from this token
 /*$response = $api->addHardwareToken(null, null, "PROTECTIMUS",
 	"797150452", "797150452", null, "220225", true, null, null);
 	echo print_r($response, true) . "<br/>";
 	$tokenId = $response->response->id;
 	echo $tokenId . "<br/>";*/
 echo "<br/>GETTING A TOKEN BY ID<br/>";
 $response = $api->getToken($tokenId);
 echo print_r($response, true) . "<br/>";
 echo "TOKEN =>>> " . print_r($response->response->token, true) . "<br/>";
 echo "<br/>UPDATING A TOKEN<br/>";
 $response = $api->editToken($tokenId, "Mail token new", false, false);
 echo print_r($response, true) . "<br/>";
 echo "UPDATED TOKEN =>>> " . print_r($response->response->token, true) . "<br/>";
 echo "<br/>GETTING A LIST OF TOKENS<br/>";
 // gets a list of tokens descending (10 records starting from 'offset' parameter)
 $response = $api->getTokens(0);
 echo print_r($response, true) . "<br/>";
 echo "TOKENS =>>> " . print_r($response->response->tokens, true) . "<br/>";
 echo "<br/>GETTING A QUANTITY OF TOKENS<br/>";
 $response = $api->getTokensQuantity();
 echo print_r($response, true) . "<br/>";
 $quantity = $response->response->quantity;