Skip to main content

YaYa Wallet Python SDK

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

yayawallet_python_sdk-1.10.3.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yayawallet_python_sdk-1.10.3-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yayawallet_python_sdk-1.10.3.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for yayawallet_python_sdk-1.10.3.tar.gz
Algorithm Hash digest
SHA256 63ac6b06a28de5feeb3bfe4d54d4172a8c300571b629166a450a5f205db0a385
MD5 c5697d68a209a0b3ed5676b630a64659
BLAKE2b-256 8ab0379e49d5690ad5d77f7fdd7b5629058b48af9a5339a54dbd2a6a108e2a32

See more details on using hashes here.

Provenance

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

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for yayawallet_python_sdk-1.10.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aa23e82f96538fae9e351e6e607e4c3ed9e6f6372620cc2fbb4527dbe1f97121
MD5 93abdf0e65fd6eeafacc9a87a78dfb4f
BLAKE2b-256 6d9cdf0ceef4263b94790a894c2b6c0cbcbe24157141cf114c05a54302aa3e0a

See more details on using hashes here.

Provenance

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

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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