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.2.23.tar.gz
.
File metadata
- Download URL: yayawallet_python_sdk-0.2.23.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71eb5dbe39f8f898d139c6538eb2634f0f985240c8b594cb920bf23baf8d2d23 |
|
MD5 | 938998e3f08656e7ac5ea31a8df153bd |
|
BLAKE2b-256 | 9be4c87a7555209fe1e7200fa68308d13efe89c7887dfb158aac8322d2287817 |
File details
Details for the file yayawallet_python_sdk-0.2.23-py3-none-any.whl
.
File metadata
- Download URL: yayawallet_python_sdk-0.2.23-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0be7861b4e4e5938d8349b3f45e45e6c2e5a6201e124cddc0e9dc14f2ced7e75 |
|
MD5 | c88a49529a63f1e26b4fb3f68308f96c |
|
BLAKE2b-256 | f9c7db9722f64f4e28ec68ab6cd55eb3d37d702efd3a16ff55b82f69fc21a1a3 |