Python services for convenient work with iiko Biz API and iiko Card API
Project description
pyiikoapi
Python services for convenient work with iiko Biz API and iiko Card API
Requirements
- Python 3.5 or higher.
Install
pip install pyiikoapi
Read more Biz readme
Example
from biz import BizService
# class initialization
api = BizService(login,password,organizationId)
# receive a list of the organization's couriers
couriers = api.get_couriers()
Read more Card readme
Example
from card import CardService
# class initialization
api = CardService(login,password,organizationId)
# get a list of organizations, i define request_timeout = 2 minutes
organization_info = api.list(params={"request_timeout": "00%3A02%3A00"})
Инфо
Маркер доступа автоматически запрашивается при инициализации классов, а так же при каждом вызове любого из методов он будет проверять время жизни маркера доступа, если время жизни маркера прошло то будет автоматически запрошен заново.
Время жизни маркера доступа равно 15 минутам.
"organizationId" прописывайте при инициализации класса
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
pyiikoapi-0.0.11.tar.gz
(18.9 kB
view details)
File details
Details for the file pyiikoapi-0.0.11.tar.gz
.
File metadata
- Download URL: pyiikoapi-0.0.11.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf6db19906fecbd0bd940ea5b0a83162396ea6e548a6e96bb8662db0cf6da13e |
|
MD5 | 413edd6219103a70dd245f0521904459 |
|
BLAKE2b-256 | c47a2ab935c51fa4e709e3a7b11f9544ebe72d7c15bf689aa43e063a23505f64 |