Skip to main content

Unifi Python API

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unifipy-1.0.4.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

unifipy-1.0.4-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page