Tremendous Api Client Python PyPackage
Tremendous Api Client client is a Python library to access services quickly.
Installation
Use the package manager pip to install foobar.
pip install TremendousClient
Environment Variables
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
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
Release files for TremendousClient 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| TremendousClient-0.0.7.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| TremendousClient-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / TremendousClient-0.0.7.tar.gz
| Download URL | TremendousClient-0.0.7.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8814fd6d0662ba892c71bba53b20211e25ddde0fa29522c210ccb1822a80eab6
|
|
BLAKE2b-256 checksum How to use checksums |
7ba64d5e9a94bd17556f1eea59571097b6086fd907556d879a6761ff1a8f17cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.6
|
Release files / TremendousClient-0.0.7-py3-none-any.whl
| Download URL | TremendousClient-0.0.7-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
33d84b7897e6760c881d208eb76aa5b3bae018ba1f8236b55858e0483bd9cbe0
|
|
BLAKE2b-256 checksum How to use checksums |
e290dea146e164f8e0ccf68d74d6688f651b4f6dfd1ee218406229bfe26ab72b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.6
|