Name | yayawallet-python-sdk JSON |
Version |
0.6.0
JSON |
| download |
home_page | None |
Summary | None |
upload_time | 2025-02-26 09:01:34 |
maintainer | None |
docs_url | None |
author | YaYa Wallet |
requires_python | None |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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.
Raw data
{
"_id": null,
"home_page": null,
"name": "yayawallet-python-sdk",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "YaYa Wallet",
"author_email": "contact@yayawallet.com",
"download_url": "https://files.pythonhosted.org/packages/12/a3/2414612839515694f631e8c1177be121e343d38420baa9b7107d9364f26f/yayawallet_python_sdk-0.6.0.tar.gz",
"platform": null,
"description": "# yaya-python-sdk\nThis is a Python SDK package for handling API integration on merchant application.\n\n# Installation\nTo install the sdk to your python based application, add\n```\nyayawallet-python-sdk==VERSION\n```\nto the requirements.txt file on your python project. Then run 'pip install -r requirements.txt'.\n\n# Environment\nThe 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:\n```\nYAYA_API_URL=https://yayawallet.com/api/en\nYAYA_API_PATH=/api/en\nYAYA_API_KEY=your_yayawallet_api_key\nYAYA_API_SECRET=your_yayawallet_api_secret\n```\n\nYou can find the last two credentials on https://yayawallet.com/en/profile/settings, after you logged in to your account on a browser.\n\n# How to use?\nThis sdk provides functions that will call different apis available on YaYa's system. Here is how you can call ```getTransactionListByUser``` function:\n```\nfrom adrf.decorators import api_view\nfrom rest_framework.response import Response\nfrom yayawallet_python_sdk.api import transaction\n\n@api_view(['GET'])\nasync def proxy_get_transaction_list_by_user(request):\n response = await transaction.get_transaction_list_by_user(None)\n return Response(response)\n```\n\nYou can get the list of services available on ```yayawallet_python_sdk/api``` folder on this repo.\n",
"bugtrack_url": null,
"license": null,
"summary": null,
"version": "0.6.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "f0df5b1112fd3417e02d813f8efd5e2d8f3b709d368da14a48482589ce6df809",
"md5": "2f019779ad8790462c034eb2495d2a97",
"sha256": "bbb58728c3a1a76bd46dfa59b1d050d617e2eb24b4873eacf0e419daa2268ff3"
},
"downloads": -1,
"filename": "yayawallet_python_sdk-0.6.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2f019779ad8790462c034eb2495d2a97",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 15423,
"upload_time": "2025-02-26T09:01:33",
"upload_time_iso_8601": "2025-02-26T09:01:33.474988Z",
"url": "https://files.pythonhosted.org/packages/f0/df/5b1112fd3417e02d813f8efd5e2d8f3b709d368da14a48482589ce6df809/yayawallet_python_sdk-0.6.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "12a32414612839515694f631e8c1177be121e343d38420baa9b7107d9364f26f",
"md5": "02ba44f2a457032a36b04c02117fb9c3",
"sha256": "fcbeb4e7886a24e14b763834fe3cd3670c59dfdc52a3a1c5588f51c5b7b4ce10"
},
"downloads": -1,
"filename": "yayawallet_python_sdk-0.6.0.tar.gz",
"has_sig": false,
"md5_digest": "02ba44f2a457032a36b04c02117fb9c3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8586,
"upload_time": "2025-02-26T09:01:34",
"upload_time_iso_8601": "2025-02-26T09:01:34.800497Z",
"url": "https://files.pythonhosted.org/packages/12/a3/2414612839515694f631e8c1177be121e343d38420baa9b7107d9364f26f/yayawallet_python_sdk-0.6.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-26 09:01:34",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "yayawallet-python-sdk"
}