$response = $api->getUsersQuantity();
 echo print_r($response, true) . "<br/>";
 $quantity = $response->response->quantity;
 echo "USERS QUANTITY =>>> " . $quantity . "<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/>";
 echo "<br/>ASSIGNING TOKEN WITH ID = " . $tokenId . " TO USER WITH ID = " . $userId . "<br/>";
 // assigns token to user
 $response = $api->assignUserToken($userId, $tokenId);
 echo print_r($response, true) . "<br/>";
 echo "<br/>GETTING A LIST OF TOKENS OF THE USER<br/>";
 // gets a list of of tokens of the user descending (10 records starting from 'offset' parameter)
 $response = $api->getUserTokens($userId, 0);
 echo print_r($response, true) . "<br/>";
 echo "TOKENS OF THE USER =>>> " . print_r($response->response->tokens, true) . "<br/>";
 echo "<br/>GETTING A QUANTITY OF TOKENS OF THE USER<br/>";
 $response = $api->getUserTokensQuantity($userId);
 echo print_r($response, true) . "<br/>";
 $quantity = $response->response->quantity;
 echo "QUANTITY OF TOKENS OF THE USER =>>> " . $quantity . "<br/>";
 echo "<br/>UNASSIGNING TOKEN WITH ID = " . $tokenId . " FROM USER WITH ID = " . $userId . "<br/>";
 // unassigns token to user
 $response = $api->unassignUserToken($userId, $tokenId);
 echo print_r($response, true) . "<br/>";
 echo "<br/>GETTING A LIST OF TOKENS OF THE USER<br/>";
 // gets a list of of tokens of the user descending (10 records starting from 'offset' parameter)
 $response = $api->getUserTokens($userId, 0);
 echo print_r($response, true) . "<br/>";