Skip to main content

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')

more examples...

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tradedoubler_api_client-0.7.5.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

tradedoubler_api_client-0.7.5-py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page