Skip to main content

This package provides Python implementation of Smartbonus api. Supported all public api of smartbonus.

Project description

Smartbonus package for Python language

This package provides Python implementation of Smartbonus api. Supported all public api of smartbonus.

With 100% test coverage.

Installation

Use the pip command:

$ pip install smartbonuspy

Requirements

Smartbonus package tested against Python 3.8.1

Example

from smartbonus import SmartBonus, set_root_path

# Creating sb
# Ask about params smartbonus team
set_root_path("https://your.smartbonus.com/api/v2/")
sb = SmartBonus("your store id")

# Get smartbonus info about client: catch error by self
client = sb.get_client('0555555555')
print(client)

# Get erorr
data, ok = sb.get_client('0555555555', raise_error=False)
if ok:
    print('your client', data)
else:
    print('error', data)

# see tests for more

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

smartbonuspy-0.0.6.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smartbonuspy-0.0.6-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file smartbonuspy-0.0.6.tar.gz.

File metadata

  • Download URL: smartbonuspy-0.0.6.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.1

File hashes

Hashes for smartbonuspy-0.0.6.tar.gz
Algorithm Hash digest
SHA256 6b2c08e617b482fcee02dbe8db801473e2ff4178a27f2a4ffd0841da7217743e
MD5 742ca0111b2e753dd4f0904ae6625b91
BLAKE2b-256 d8db34d45ab4caf14bbc56628fbe0bfe3d9999dbb00ab4410fc83b595d974638

See more details on using hashes here.

File details

Details for the file smartbonuspy-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: smartbonuspy-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.1

File hashes

Hashes for smartbonuspy-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 dab1e35988c8b0f58042583929e7b00cb8cdd37ec4fac912aab7d2da27e2b710
MD5 fbd286aa1de3ed3565011af7c70e8a07
BLAKE2b-256 2f5d852c3c0fb1a0cf19bc6a07e2b2e580485708aac31ed6edf072bab2dbc016

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