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.3.tar.gz
.
File metadata
- Download URL: tradedoubler_api_client-0.3.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1039bd2dd8b2bb76eeb77b831c2deb27547fa9ef79d29e88c05ee6fba7c0c0ce |
|
MD5 | 78769d353536018d54b2f1e2aeac2e6d |
|
BLAKE2b-256 | 36c85070bfdb8f24399837e683c2615d0a340ab44a5d2d1886d7aee9e81186fd |
Provenance
File details
Details for the file tradedoubler_api_client-0.3-py3-none-any.whl
.
File metadata
- Download URL: tradedoubler_api_client-0.3-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ba138c0c99462b532dd7d0a320a50e10da2e67f63f24406498caf27571a28dc |
|
MD5 | d14bb2c54c603cb08d2b5c9f5edc4a9e |
|
BLAKE2b-256 | ac73bddb01ac792391cf318cf6e9ee96905bfa442d4272f7c5f200b03c7c7a3c |