Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API call for Total Bytes used per Voucher? #2

Closed
seanmavley opened this issue May 22, 2017 · 3 comments
Closed

API call for Total Bytes used per Voucher? #2

seanmavley opened this issue May 22, 2017 · 3 comments
Assignees

Comments

@seanmavley
Copy link

I've been going through the API calls and I can't find one where I specify the voucher code, and it gives me the total used per that voucher.

I'm asking because, users of my hotspot are always asking for how much data they've used. I wanna put together a simple Express app where they could enter their voucher, and have the amount used and amount left shown.

I'm loving this project of yours so much. Thanks.

@delian
Copy link
Owner

delian commented Jun 28, 2017

Generally, the only place I've seen accounting data is in the client list. Check list_clients()

@delian delian self-assigned this Jun 28, 2017
@seanmavley
Copy link
Author

I think the problem with using the list_clients() (https://github.com/delian/node-unifiapi#UnifiAPI+list_clients) is that, it lists connected clients. However, the person checking voucher might not necessarily be connected to the APs

@delian
Copy link
Owner

delian commented Jun 29, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants