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
)
Metadata
Release files for billing-api 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| billing-api-0.0.3.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| billing_api-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / billing-api-0.0.3.tar.gz
| Download URL | billing-api-0.0.3.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee965fac094f38968ba091dce92624867c479e101d2c3a5ad07db2ad30a7d990
|
|
BLAKE2b-256 checksum How to use checksums |
c4a55eb7e37368b9d97da59997761bef239b3d3d41139473e4022bd883f89601
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.10
|
Release files / billing_api-0.0.3-py3-none-any.whl
| Download URL | billing_api-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e487d18512cf61d472b5bb3e39de705735ac88b7b428de8b8cde6d086bfcdf6
|
|
BLAKE2b-256 checksum How to use checksums |
8692837a1cf4e17ecbc57b5a2ea3de5794194cab0f1751bfb116dd62436f0971
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.10
|