Skip to main content

Python Adform API wrapper

Project description

Adform API wrapper 📦

  • Adform is a digital advertising platform.
  • There's no Python API wrapper that I could find to communicate with Adform's API.
  • This is an attempt to create an API wrapper I can use at work.

Installation

pipenv install adform_api_wrapper

Getting Started

import os

from adform_api_wrapper import AdformApi

ADFORM_CLIENT_ID = os.getenv('ADFORM_CLIENT_ID')
ADFORM_CLIENT_SECRET = os.getenv('ADFORM_CLIENT_SECRET')

adform_api = AdformApi(ADFORM_CLIENT_ID, ADFORM_CLIENT_SECRET)
# https://api.adform.com/v1/help/buyer/campaigns#!/Campaigns/get_v1_buyer_campaigns
all_campaigns_response = adform_api.get('/buyer/campaigns')
print(all_campaigns_response.json())

Features

  • Automatic fetching of authentication token
  • Automatic refereshing of authentication token when it expires
  • Re-using of internal session object between API calls

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

dagmar_adform_api_wrapper-1.0.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dagmar_adform_api_wrapper-1.0.0-py2.py3-none-any.whl (5.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file dagmar_adform_api_wrapper-1.0.0.tar.gz.

File metadata

  • Download URL: dagmar_adform_api_wrapper-1.0.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.16

File hashes

Hashes for dagmar_adform_api_wrapper-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1811f02d00d0059fffc6d6bcf8aad3f57fd312ceb5cb77822ea6a861a986b39e
MD5 0e40b402628bf8a0f60750f155f8814c
BLAKE2b-256 cec1ebf6285ae1f7554b017a8555176593eec750876d574d84b41d85e1675cb4

See more details on using hashes here.

File details

Details for the file dagmar_adform_api_wrapper-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: dagmar_adform_api_wrapper-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.16

File hashes

Hashes for dagmar_adform_api_wrapper-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0e1ca71c63287f26c441e6464c43876fe3e7dd21afbfed3bf89280927aa880d1
MD5 0e2bd889d15cb931c2e172e16090c4e3
BLAKE2b-256 e61a9d0fe6f1621174323a0c5b35fdc52a4ddf59590e9836c2762a44b72bacd2

See more details on using hashes here.

Supported by

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