Unifi Python Voucher API
This API contains a Unifi API wrapper specifically for creating vouchers programmatically.
Usage
from unifi import unifi
api = Unifi("foo", "bar", "http://unifi.local")
vouchers = api.generate_voucher(expire=42, usages=23)
for voucher in vouchers:
print(voucher["code"])