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

Uploaded Source

Built Distribution

yayawallet_python_sdk-0.2.2-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yayawallet_python_sdk-0.2.2.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for yayawallet_python_sdk-0.2.2.tar.gz
Algorithm Hash digest
SHA256 80b5487b306bf643d4bd5617ecb2965b14888f6612b2fb88b8d03c4da3683a02
MD5 c87c89281e6d29c7d7db37055eef9944
BLAKE2b-256 6f5a808392405f96f71b268b0cdd3a7f91f9ef3b3b64a7c233334957e0341645

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yayawallet_python_sdk-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 48c83dd8524e3d8e07f2cad443a38d9debd454a817cc29c703994e5e6fcb792d
MD5 5eb8bfeaa97a1f9d000c75769bd2920e
BLAKE2b-256 75ef49adbc5c080d05a3d813277a09a3240277b236ab135c0fc4a178dc9b2429

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