Metadata-Version: 2.1
Name: smartbonuspy
Version: 0.0.6
Summary: This package provides Python implementation of Smartbonus api. Supported all public api of smartbonus.
Home-page: https://github.com/srostyslav/smartbonuspy
Author: Rostyslav
Author-email: rostyslav.rigroup@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# 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

```python
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
```


