yaya-python-sdk
This is a Python SDK package for handling API integration on merchant application.
Installation
To install the sdk to your python based application, add
yayawallet-python-sdk==VERSION
to the requirements.txt file on your python project. Then run 'pip install -r requirements.txt'.
Environment
The sdk expects api credentials to be provided by the user. To set it up, you need to create a .env file and add the following environment variables:
YAYA_API_URL=https://yayawallet.com/api/en
YAYA_API_PATH=/api/en
YAYA_API_KEY=your_yayawallet_api_key
YAYA_API_SECRET=your_yayawallet_api_secret
You can find the last two credentials on https://yayawallet.com/en/profile/settings, after you logged in to your account on a browser.
How to use?
This sdk provides functions that will call different apis available on YaYa's system. Here is how you can call getTransactionListByUser function:
from adrf.decorators import api_view
from rest_framework.response import Response
from yayawallet_python_sdk.api import transaction
@api_view(['GET'])
async def proxy_get_transaction_list_by_user(request):
response = await transaction.get_transaction_list_by_user(None)
return Response(response)
You can get the list of services available on yayawallet_python_sdk/api folder on this repo.
Release files for yayawallet-python-sdk 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yayawallet_python_sdk-0.2.3.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yayawallet_python_sdk-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.5 kB
Release files / yayawallet_python_sdk-0.2.3.tar.gz
| Download URL | yayawallet_python_sdk-0.2.3.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eaa7f30dd61522d084529f154c5238d80e0cb04f4fdcf488d4babcc108bc05cb
|
|
BLAKE2b-256 checksum How to use checksums |
f49eab5ea8e7e48d0342622097bf784829e848bd29b57de0bfe371d148c93dfd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / yayawallet_python_sdk-0.2.3-py3-none-any.whl
| Download URL | yayawallet_python_sdk-0.2.3-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
54dbb7ea9c4a9ad4f6c6e5b6a86b283172b6ea929297c291e9d17af3a086aea1
|
|
BLAKE2b-256 checksum How to use checksums |
627aaabb372ee63ce4351e21e0ccd587993fe5689c2d4101a120d5aeebe60488
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|