Unicboard billing api
Project description
Unicboard billing api is available on PyPI:
Requires:
Python >=3.6
install:
python -m pip unicboard_billing_api
usage:
from unicboard_billing_sdk import BillingApiSdk
Api = BillingApiSdk(
api_billing_url="unicboard url",
api_token="yours token",
)
get list devices
devices = Api.get_device_list_info() # default limit = 1000
devices = Api.get_device_list_info(limit: int, offset: int) # for custom limit/offset
list_device_id = [device.id for device in devices]
list_device_mac = [device.data_gateway_network_device.mac for device in devices]
get device by device_id
device = Api.get_device_info(UUID(device_id))
get device by device_id
devices_values = Api.get_device_value(
devices_id=list_device_id,
period_from: datetime,
period_to: Optional[datetime], # default now
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for unicboard_billing_sdk-0.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8680951f4d788b7c550a76b5e313b5c4a46ee8618aa1cbc2adce93fee2333d2 |
|
MD5 | bc47a7affab58f923a753865f08e89c5 |
|
BLAKE2b-256 | d21e78978e2691356a72901aa71b34546834461023e8c23c692273b907d3567f |
Close
Hashes for unicboard_billing_sdk-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c978c090e0e6c9bcc20240c0a1c35e8b4966996e83b77077d9ce0f4800881c30 |
|
MD5 | 7ea1a2df70287ba5d2acac23fbcb755a |
|
BLAKE2b-256 | cf6b6692c2ac611ba6054206fc807bd941461939c920fb99809fe5b4687f573a |