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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for dagmar_adform_api_wrapper-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1811f02d00d0059fffc6d6bcf8aad3f57fd312ceb5cb77822ea6a861a986b39e |
|
MD5 | 0e40b402628bf8a0f60750f155f8814c |
|
BLAKE2b-256 | cec1ebf6285ae1f7554b017a8555176593eec750876d574d84b41d85e1675cb4 |
Close
Hashes for dagmar_adform_api_wrapper-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e1ca71c63287f26c441e6464c43876fe3e7dd21afbfed3bf89280927aa880d1 |
|
MD5 | 0e2bd889d15cb931c2e172e16090c4e3 |
|
BLAKE2b-256 | e61a9d0fe6f1621174323a0c5b35fdc52a4ddf59590e9836c2762a44b72bacd2 |