[![PyPI version](https://img.shields.io/pypi/v/TremendousClient.svg)](https://pypi.python.org/pypi/TremendousClient)
# Tremendous Api Client Python PyPackage
Tremendous Api Client client is a Python library to access services quickly.
## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.
```bash
pip install TremendousClient
```
## Environment Variables
```bash
TREMENDOUS_ENV: 'dev|prod'
TREMENDOUS_TOKEN: 'TREMENDOUS TOKEN'
```
### Note
If you don't want to set this variables from global environment you can pass them to class.
You can see usage below
## Usage
```python
from tremendous import TremendousService
kwargs = {
# you can also set tremendous environment from environment.
'environment': 'dev|prod', # Default value : dev
# you can also set token from environment.
'token': 'tremendous token', # Default value : None
}
# Initialize client with
tremendous_service = TremendousService()
# or tremendous_service = TremendousService(**kwargs)
# For Products
products = tremendous_service.getProducts()
# For Funding Source
funding_source = tremendous_service.getFundingSource()
# For Create Order
body = {
"payment": {
"funding_source_id": "funding_source_id"
},
"rewards": [
{
"products": [
"product_id"
],
"value": {
"denomination": 2,
"currency_code": "USD"
},
"recipient": {
"name": "John Doe Jr.",
"email": "johndoe@example.com"
},
"delivery": {
"method": "LINK"
}
}
]
}
order = tremendous_service.createOrder(body)
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## License
[MIT](https://choosealicense.com/licenses/mit/)
Raw data
{
"_id": null,
"home_page": "https://github.com/blueromans/Tremendous.git",
"name": "TremendousClient",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "",
"author": "Ya\u015far \u00d6zyurt",
"author_email": "blueromans@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/7b/a6/4d5e9a94bd17556f1eea59571097b6086fd907556d879a6761ff1a8f17cd/TremendousClient-0.0.7.tar.gz",
"platform": null,
"description": "[![PyPI version](https://img.shields.io/pypi/v/TremendousClient.svg)](https://pypi.python.org/pypi/TremendousClient)\n\n# Tremendous Api Client Python PyPackage\n\nTremendous Api Client client is a Python library to access services quickly.\n\n## Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.\n\n```bash\npip install TremendousClient\n```\n## Environment Variables\n\n```bash\nTREMENDOUS_ENV: 'dev|prod'\nTREMENDOUS_TOKEN: 'TREMENDOUS TOKEN'\n```\n### Note\nIf you don't want to set this variables from global environment you can pass them to class.\nYou can see usage below\n## Usage\n\n```python\nfrom tremendous import TremendousService\n\nkwargs = {\n # you can also set tremendous environment from environment.\n 'environment': 'dev|prod', # Default value : dev\n # you can also set token from environment.\n 'token': 'tremendous token', # Default value : None\n}\n# Initialize client with\ntremendous_service = TremendousService()\n# or tremendous_service = TremendousService(**kwargs)\n\n# For Products\nproducts = tremendous_service.getProducts()\n\n# For Funding Source\nfunding_source = tremendous_service.getFundingSource()\n\n# For Create Order\nbody = {\n \"payment\": {\n \"funding_source_id\": \"funding_source_id\"\n },\n \"rewards\": [\n {\n \"products\": [\n \"product_id\"\n ],\n \"value\": {\n \"denomination\": 2,\n \"currency_code\": \"USD\"\n },\n \"recipient\": {\n \"name\": \"John Doe Jr.\",\n \"email\": \"johndoe@example.com\"\n },\n \"delivery\": {\n \"method\": \"LINK\"\n }\n }\n ]\n }\norder = tremendous_service.createOrder(body)\n\n```\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n",
"bugtrack_url": null,
"license": "",
"summary": "Tremendous Api Client Python package",
"version": "0.0.7",
"project_urls": {
"Bug Tracker": "https://github.com/blueromans/Tremendous/issues",
"Homepage": "https://github.com/blueromans/Tremendous.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e290dea146e164f8e0ccf68d74d6688f651b4f6dfd1ee218406229bfe26ab72b",
"md5": "d853b24d48126246239e899c89105f57",
"sha256": "33d84b7897e6760c881d208eb76aa5b3bae018ba1f8236b55858e0483bd9cbe0"
},
"downloads": -1,
"filename": "TremendousClient-0.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d853b24d48126246239e899c89105f57",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 5655,
"upload_time": "2023-05-15T11:15:52",
"upload_time_iso_8601": "2023-05-15T11:15:52.903997Z",
"url": "https://files.pythonhosted.org/packages/e2/90/dea146e164f8e0ccf68d74d6688f651b4f6dfd1ee218406229bfe26ab72b/TremendousClient-0.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7ba64d5e9a94bd17556f1eea59571097b6086fd907556d879a6761ff1a8f17cd",
"md5": "d7d00fd07319c2f87d377303542c01dc",
"sha256": "8814fd6d0662ba892c71bba53b20211e25ddde0fa29522c210ccb1822a80eab6"
},
"downloads": -1,
"filename": "TremendousClient-0.0.7.tar.gz",
"has_sig": false,
"md5_digest": "d7d00fd07319c2f87d377303542c01dc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 4339,
"upload_time": "2023-05-15T11:15:54",
"upload_time_iso_8601": "2023-05-15T11:15:54.788356Z",
"url": "https://files.pythonhosted.org/packages/7b/a6/4d5e9a94bd17556f1eea59571097b6086fd907556d879a6761ff1a8f17cd/TremendousClient-0.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-15 11:15:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "blueromans",
"github_project": "Tremendous",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "tremendousclient"
}