I have the following query where I can get the user's email address, but I need a query to get the username where parametr will be user e-mail.
$sock->query('/CMD_API_SHOW_USER_CONFIG?user=tom');
$result = $sock -> fetch_parsed_body();
echo '<pre>';
var_dump($result['email']);
echo '<pre>';