Metadata-Version: 2.1
Name: python-sdk-ewallet
Version: 0.0.1
Summary: Python SDK for LianLian Global e-wallet program
Home-page: https://developer.lianlianglobal.com/docs/e-wallet-openapi
Author: yangdm002
Author-email: yangdm002@lianlianpay.com
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

# Python-sdk-ewallet

Python-sdk-ewallet is a Python SDK for [OpenAPI](https://developer.lianlianglobal.com/docs/e-wallet-openapi) of LianLian Global e-wallet program.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install python-sdk-ewallet.

```bash
pip install python-sdk-ewallet
```

## Usage

### Get Balances
```python
import ewallet

ewallet.set_config(default_host=ewallet.TEST_HOST)
auth = ewallet.TokenAuth('8ZCZo2rqOb2swvSzTlc7v472G', 'czCAB1FftSbNfLnP1jTOYkmg1RtDfecR')
data, code = ewallet.get_balances(auth)
if code == 200:
    print(data)
else:
    print(code, data)
```
For more operation, please refer to the [SDK User Guide](https://developer.lianlianglobal.com/docs/e-wallet-openapi).

### Test
```bash
py test_ewallet.py
```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
[MIT](https://choosealicense.com/licenses/mit/)
