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.32.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

yayawallet_python_sdk-0.2.32-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for yayawallet_python_sdk-0.2.32.tar.gz
Algorithm Hash digest
SHA256 40aa9ca1dbb386eaccded92f6bda7cb1abd6d989d436c3171d10a88a3ef864a4
MD5 ec6feb7d289ee021a018c85c4db0dc49
BLAKE2b-256 ca676e36f3f0268154044e2a54ae0048a28de92a4cdda625f2351ec06995d8f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for yayawallet_python_sdk-0.2.32.tar.gz:

Publisher: release.yml on yayawallet/yayawallet-python-sdk

Attestations:

File details

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

File metadata

File hashes

Hashes for yayawallet_python_sdk-0.2.32-py3-none-any.whl
Algorithm Hash digest
SHA256 65b8fd543b7205c9bdf514b673268a4abf3b4d56a9981b53aaf23a457e0d4802
MD5 10c6f0d7ba657b9063eaaf94da98b74a
BLAKE2b-256 a13d37945fc507deb8376bb54a414197d90a6fa3a83096fe9698883221af7b58

See more details on using hashes here.

Provenance

The following attestation bundles were made for yayawallet_python_sdk-0.2.32-py3-none-any.whl:

Publisher: release.yml on yayawallet/yayawallet-python-sdk

Attestations:

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