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_api 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
billing-api-0.0.2.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for billing_api-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf5c939c41ea8cf010ce90c8f0f53d54e43fd3be80658a9dd20fd7aa179bf02c |
|
MD5 | da56151b5b45166a12dab857a92e930a |
|
BLAKE2b-256 | 99abefdbc3d569634e98ef5cd890794e89d404ad92dc46471c7d219c81334ea8 |