Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yayawallet_python_sdk-0.2.20.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

yayawallet_python_sdk-0.2.20-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file yayawallet_python_sdk-0.2.20.tar.gz.

File metadata

File hashes

Hashes for yayawallet_python_sdk-0.2.20.tar.gz
Algorithm Hash digest
SHA256 bbbf537e87c75a6e8f5b1aa9da5ea703f60a36d5548ebe097b954ab605961e98
MD5 c0c21eceea4647cfa011ded66fdc9e05
BLAKE2b-256 57e70c83f4561a48b7bce18982287aeaee4e9a5e5256e3f1ccb1721205b548b4

See more details on using hashes here.

File details

Details for the file yayawallet_python_sdk-0.2.20-py3-none-any.whl.

File metadata

File hashes

Hashes for yayawallet_python_sdk-0.2.20-py3-none-any.whl
Algorithm Hash digest
SHA256 2076cbd8822cac3cf5047f3d70f2c82fb4d30164f009f0325976770d9e4ff8e6
MD5 f47b27643ba1c1483b9f038678d47409
BLAKE2b-256 5ce1ae0442f89f28ca218f452bad9eeddf12e09ce04d1e77fe55039d12294b4b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page