billing-api-0.0.3
توضیحات
Unicboard billing api
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | billing-api-0.0.3 |
| نام | billing-api |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Unic-lab |
| ایمیل نویسنده | a.brilon@unic-lab.by |
| آدرس صفحه اصلی | https://github.com/uniclab-01/billing-api |
| آدرس اینترنتی | https://pypi.org/project/billing-api/ |
| مجوز | MIT |
# Unicboard billing api is available on PyPI:
## Requires:
Python >=3.6
## install:
python -m pip unicboard_billing_api
## usage:
```python
from unicboard_billing_sdk import BillingApiSdk
Api = BillingApiSdk(
api_billing_url="unicboard url",
api_token="yours token",
)
```
### get list devices
```python
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
```python
device = Api.get_device_info(UUID(device_id))
```
### get device by device_id
```python
devices_values = Api.get_device_value(
devices_id=list_device_id,
period_from: datetime,
period_to: Optional[datetime], # default now
)
```
نیازمندی
| مقدار | نام |
|---|---|
| >=2.26.0 | requests |
نحوه نصب
نصب پکیج whl billing-api-0.0.3:
pip install billing-api-0.0.3.whl
نصب پکیج tar.gz billing-api-0.0.3:
pip install billing-api-0.0.3.tar.gz