Unofficial simple python wrapper for Tradedoubler API
Project description
tradedoubler_api_client
Unofficial simple python wrapper for Tradedoubler API
instalation
pip install tradedoubler-api-client
example of usage
from tradedoubler_api_client import Tradedoubler
td = Tradedoubler('relative_path_to_credentials.json')
pending_sales = td.pending_sales()
list_pendint_sales = td.pending_sales().get_all()
list_pendint_sales.csv(path='csv')
list_pendint_sales.json(path='json')
credentials.json schema:
{
"td_secret": "[secret]",
"td_id": "[id of application]",
"td_user_name": "[email@domain.com]",
"td_userpassword": "[passToAcount]"
}
visit solutions.tradedoubler.com/tools/api-client/index.php to get app id and secret.
List of reasons to deny transaction
code | reason |
---|---|
6 | Application/Credit Check Denied |
7 | Fraudulent Order/Application |
8 | Duplication / Sale Accredited to Another Source |
9 | Order Yet To Be Fulfilled |
10 | Returned goods |
13 | Invalid Lead |
14 | Order Cancelled |
16 | Insuffient Information (Applicable only for untracked sales) |
17 | Order not found (Applicable only for untracked sales) |
18 | Sale Already Accredited to Publisher (Applicable only for untracked sales) |
19 | Voucher incorrectly used |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tradedoubler_api_client-0.4.tar.gz
.
File metadata
- Download URL: tradedoubler_api_client-0.4.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05b4120f45ac8ea017cb930c2199b7b8a986cffbdef11ab4752c9976b7f79052 |
|
MD5 | 36db00b36b6bb5e6b2efe52e7fee5199 |
|
BLAKE2b-256 | 0c06901cabd4c50235e4b7e1cf5242d332fed2856a524a03683ae523aae87934 |
Provenance
File details
Details for the file tradedoubler_api_client-0.4-py3-none-any.whl
.
File metadata
- Download URL: tradedoubler_api_client-0.4-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd3c25eac649a446cc1481efa623722ebe2214490fb2ad112e33ed0038b48566 |
|
MD5 | 7de9a4c40ff23eb1e54163fd619c7058 |
|
BLAKE2b-256 | b4dcf943a4f8ed026cfa0a934b36377360494cb68640d2599b69a88de131235d |