how to retrieve credit or time left UM 4

Hi,

I’m migrating from UM 3 to UM 4 and I have troubles getting users time left or credit left. My hotspot is controlled via selfcoded web (php).

I use API command:

$API->write(‘/tool/user-manager/user/print’,false);

to get all user details like credit-left


So what I need is to know how much time or credit left to users so I can display it in their personal web.

thanks