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

Uploaded Source

Built Distribution

yayawallet_python_sdk-0.1.23-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for yayawallet_python_sdk-0.1.23.tar.gz
Algorithm Hash digest
SHA256 9fcdb1934e9c803ba654204794aec502b634e559bea1e6a40dca66c40b8456c9
MD5 2b674c2ab88ea87fce49f39892d6f7fc
BLAKE2b-256 4df1f1ddea0f52f8ce32794e1a4b25e43e1ec9002207a1e7819424441f5c26b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yayawallet_python_sdk-0.1.23-py3-none-any.whl
Algorithm Hash digest
SHA256 712cecf3b15827c4b982dd3a736b4fb3439a3d562b6a46c6e299c7266d647bee
MD5 aa9f8a60bf214b5e56ebf223750e700b
BLAKE2b-256 3640c32cf25d420d6746a38087e5f9318ffe1adf0d808645753288a6e30f545e

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