Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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


Release history Release notifications

This version

1.0.0

Download files

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

Files for dagmar-adform-api-wrapper, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size dagmar_adform_api_wrapper-1.0.0-py2.py3-none-any.whl (5.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size dagmar_adform_api_wrapper-1.0.0.tar.gz (5.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page