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.3.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

tradedoubler_api_client-0.3-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

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

Hashes for tradedoubler_api_client-0.3.tar.gz
Algorithm Hash digest
SHA256 1039bd2dd8b2bb76eeb77b831c2deb27547fa9ef79d29e88c05ee6fba7c0c0ce
MD5 78769d353536018d54b2f1e2aeac2e6d
BLAKE2b-256 36c85070bfdb8f24399837e683c2615d0a340ab44a5d2d1886d7aee9e81186fd

See more details on using hashes here.

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

Hashes for tradedoubler_api_client-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1ba138c0c99462b532dd7d0a320a50e10da2e67f63f24406498caf27571a28dc
MD5 d14bb2c54c603cb08d2b5c9f5edc4a9e
BLAKE2b-256 ac73bddb01ac792391cf318cf6e9ee96905bfa442d4272f7c5f200b03c7c7a3c

See more details on using hashes here.

Provenance

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