Skip to main content

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


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.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

billing_api-0.0.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file billing-api-0.0.3.tar.gz.

File metadata

  • Download URL: billing-api-0.0.3.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for billing-api-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ee965fac094f38968ba091dce92624867c479e101d2c3a5ad07db2ad30a7d990
MD5 7239eed7046f599b9dcdd7f2feb491a8
BLAKE2b-256 c4a55eb7e37368b9d97da59997761bef239b3d3d41139473e4022bd883f89601

See more details on using hashes here.

File details

Details for the file billing_api-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: billing_api-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for billing_api-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6e487d18512cf61d472b5bb3e39de705735ac88b7b428de8b8cde6d086bfcdf6
MD5 14ec729be75f52d02b22ae045f0b0f51
BLAKE2b-256 8692837a1cf4e17ecbc57b5a2ea3de5794194cab0f1751bfb116dd62436f0971

See more details on using hashes here.

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