No project description provided
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file yayawallet_python_sdk-0.1.16.tar.gz
.
File metadata
- Download URL: yayawallet_python_sdk-0.1.16.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8375b5aea8f6f87fc532e367299d597021722cefa2ac8ac155b7c9b487faf47e |
|
MD5 | 0d13bb52fe4bc1f784e2d054273f59d2 |
|
BLAKE2b-256 | 81e8258e1c4f17953075e2896e93aa651f527725ca1f40de1e95bc1fc5388347 |
File details
Details for the file yayawallet_python_sdk-0.1.16-py3-none-any.whl
.
File metadata
- Download URL: yayawallet_python_sdk-0.1.16-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f7ef2cd1fa46d76a30900eca573e390a0984733c8f63b6ece3a8f622b9219bf |
|
MD5 | 4504de60d36556b37021e63edbc632fa |
|
BLAKE2b-256 | 74dc2bfbf51f3777d2370a5754501f989125ae8caf7e879bd3190cfaf7914e94 |