Каталог Поиск 0 Сравнить 0 Закладки 0 Корзина Войти
Каталог
105082, Москва, ул. Фридриха Энгельса, 75с21, БЦ Бауманский ИТКОЛ
Пн - Пт: с 09-00 до 18-00 Сб: с 10-00 до 18-00 Вс: выходной
Страницы: 1
RSS
Enable guest clients check their voucher status for noobs., UniFi Network
 
I have seen solutions that uses PHP and using cloudkey. The problem is I'm not familiar with PHP and I am not using cloudkey. I'm using raspberry pi 3 b+ as controller of my 2 UAP AC LR. Maybe someone can help me give guest clients option check their voucher status data, speed, validity in real time time. I know how to use the terminal in pi, I'm familiar with unifi controller interface, I am an average computer user.
 
@slooffmaster Thanks. I use your API client and browser as a reference to the API calls and call APIs manually in browser 😊 BTW Is there official documentation of UniFi Controller API ?
 
Good to hear. I’m afraid there is no official documentation of the API._________________Art of WiFi - Check out our UniFi API browser tool on GitHub. The PHP API client which it uses, can be found here on GitHub. The thread on our UniFi Device Search tool can be found here, also check out our Captive Portal solutions for UniFi.
 
@slooffmaster Bingo! I found the way to get the report such as Insights > Past Guest Authorizations 😎 Your UniFi-API-client has the method stat_auth that calls api stat/authorization. The response contains all data that I need - client MAC address, voucher id, etcThank you!
 
@banato Good to hear you found it!_________________Art of WiFi - Check out our UniFi API browser tool on GitHub. The PHP API client which it uses, can be found here on GitHub. The thread on our UniFi Device Search tool can be found here, also check out our Captive Portal solutions for UniFi.
 
@banato See my previous message: simply use the API Browser tool to investigate the raw data in the authorizations collection._________________Art of WiFi - Check out our UniFi API browser tool on GitHub. The PHP API client which it uses, can be found here on GitHub. The thread on our UniFi Device Search tool can be found here, also check out our Captive Portal solutions for UniFi.
 
@slooffmaster Thank you for your quick response!You mentioned "Past Guest Authorizations":And I checked and saw there some interested column "Authorized By" there: https://img.community.ui.com/263cb4c3-62cc-432c-90ae-87227df6a4b4/answers/7d43d3a3-ab3c-450c-8578-f95fbf7a883b/d9db8c4e-593f-4b20-b422-14ed8055b97e There is only the field "authorized" (true/false)  in the api's stat/user and /stat/sta responses.And nothing like as "authorized by"...Regards,Alex.
 
@banato We don't use the built-in vouchers that often in our projects so I don't have any test data to validate. You can either download my API Browser tool to go through the collections yourself, or we can discuss offline so I have temp access to a site of yours that does use vouchers._________________Art of WiFi - Check out our UniFi API browser tool on GitHub. The PHP API client which it uses, can be found here on GitHub. The thread on our UniFi Device Search tool can be found here, also check out our Captive Portal solutions for UniFi.
 
@slooffmasterIs there a way in API to find a client (or clients) that was authorized by some voucher? Generally, how to get voucher that was used in authorization if I know the client MAC address?Thanks for advance!Regards,Alex.
Страницы: 1
Читают тему (гостей: 1)