queue tree stats problem

How to get statistics of queue tree users using php api???

I’m using following command..but no luck :unamused: :unamused: :neutral_face:
$API->write(“/queue/tree/print/stats”,false);
$API->write(“?name=“LLUser_In”,false);
$API->write(”=.proplist=.id");
$READ = $API->read();

please help me out!

“stats” is a separate argument.

Oh, and, the name shouldn’t be surrounded with quotes. Only the whole word itself, i.e.

$API->write("/queue/tree/print",false);
$API->write("?name=LLUser_In",false);
$API->write("=.proplist=.id",false);
$API->write("=stats=");
$READ = $API->read();