Skip to main content

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


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

Uploaded Source

File details

Details for the file pyiikoapi-0.0.10.tar.gz.

File metadata

  • Download URL: pyiikoapi-0.0.10.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

Hashes for pyiikoapi-0.0.10.tar.gz
Algorithm Hash digest
SHA256 57d2ffdd2a5cb27b5888300fd710e42a1ef47ce61a389da776943ea3ff7de65a
MD5 82e5f165aedc6669f900cb975c20feec
BLAKE2b-256 2bde8e10cbda62e5f78a4f173ac34b7674be2580cd0f968408bee43a80bdcc45

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page