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.7.5.tar.gz
.
File metadata
- Download URL: tradedoubler_api_client-0.7.5.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46fdfff40b9f0b15872ba12aa2fa5c002b24d6a4cc05facc806b936f7d3ea704 |
|
MD5 | 531c7a19a9c50b53b6766b2ac94fa5c7 |
|
BLAKE2b-256 | baabda70e9180e360a927fc74c2a67fed9c6a85d7491abf7a4cf9bc6e1dbe8b9 |
File details
Details for the file tradedoubler_api_client-0.7.5-py3-none-any.whl
.
File metadata
- Download URL: tradedoubler_api_client-0.7.5-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acc59bd4f149884f88197a0f95dc959d3d7f7f0e399d84dd21bf56957d75b523 |
|
MD5 | 36aec547f9d2bb63cc30f3b1c3606793 |
|
BLAKE2b-256 | 9b09bf4c613d44fe1bec4100f9ae295878c793bfada88eb7cf9056aa64a391fe |