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.25.tar.gz
.
File metadata
- Download URL: yayawallet_python_sdk-0.2.25.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c8aeae4fd2e760a5e3eb6fc1b032e8c61268a0354e3d44ac9d1010b9d0481b9 |
|
MD5 | 8d5ae780a3e781018a01614aaccbbdb2 |
|
BLAKE2b-256 | b17159e2d3ee3df6fa5d8a4ae479b7c01f9f58a0b24aea7050edcdcfcfeee194 |
File details
Details for the file yayawallet_python_sdk-0.2.25-py3-none-any.whl
.
File metadata
- Download URL: yayawallet_python_sdk-0.2.25-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaa7624aed7908ee865b8d40a70fcec51e4026669cfad7096735f98b9dc15771 |
|
MD5 | 8fa3b7ebb393408fdaa258664172794b |
|
BLAKE2b-256 | 673d724605ede911be213cea9666da956332cbb3b1ecde66f79898411b133136 |