Hi,
I’m using a API connection to my mikrotik router. but have some problems
1.How can I see the complete details of a ppp secret?
2.How can I see the complete details of a ip hotspot user?
3.how can I run the print cmnd in ip hotspot user to show all details in my api consol?
if any one know that then help me
Usually, giving the argument “detail” will give you properties that are normally hidden without it.
The raw protocol data to send is
/ip/hotspot/user/print
=detail=
/ppp/secret/print
=detail=
But exactly how do you run it and extract results from it depends on the client you’re using.
With mine for example, you’d do for example:
foreach ($util->setMenu('/ip hotspot user')->getAll(array('detail')) as $user) {
foreach ($user as $propName => $propValue) {
echo "{$propName} = {$propValue}\n";
}
echo "====\n";
}