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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file tradedoubler_api_client-0.7.5.tar.gz.

File metadata

File hashes

Hashes for tradedoubler_api_client-0.7.5.tar.gz
Algorithm Hash digest
SHA256 46fdfff40b9f0b15872ba12aa2fa5c002b24d6a4cc05facc806b936f7d3ea704
MD5 531c7a19a9c50b53b6766b2ac94fa5c7
BLAKE2b-256 baabda70e9180e360a927fc74c2a67fed9c6a85d7491abf7a4cf9bc6e1dbe8b9

See more details on using hashes here.

File details

Details for the file tradedoubler_api_client-0.7.5-py3-none-any.whl.

File metadata

File hashes

Hashes for tradedoubler_api_client-0.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 acc59bd4f149884f88197a0f95dc959d3d7f7f0e399d84dd21bf56957d75b523
MD5 36aec547f9d2bb63cc30f3b1c3606793
BLAKE2b-256 9b09bf4c613d44fe1bec4100f9ae295878c793bfada88eb7cf9056aa64a391fe

See more details on using hashes here.

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