Community discussions

MUM Europe 2020
just joined
Topic Author
Posts: 1
Joined: Sun Jan 19, 2020 11:38 am
Location: Turkey

API for Disabled Users

Tue Feb 11, 2020 10:32 pm

Hello,I need to count the hotspot disabled users via API for PHP
the script is here
:global h 0
:global c 0
:foreach h in=[/ip hotspot user find (Flags=X || Flags=x)] do={
:if (Flags=X || Flags=x) do={
:return ([$c] + 1)
:put $c
this works in Winbox
thanks for helping
User avatar
MikroTik Support
MikroTik Support
Posts: 5965
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia

Re: API for Disabled Users

Thu Feb 13, 2020 12:33 pm

receive all disabled hotspot users via API query and count them in your app.

Who is online

Users browsing this forum: No registered users and 13 guests