unifipy

Unifi Python API


License
MIT
Install
pip install unifipy==1.0.4

Documentation

Unifi Python Voucher API

PyPI PyPI - License

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"])