dagmar-adform-api-wrapper-1.0.0
توضیحات
Python Adform API wrapper
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dagmar-adform-api-wrapper-1.0.0 |
| نام | dagmar-adform-api-wrapper |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tuomas Katva |
| ایمیل نویسنده | tuomas.katva@dagmar.fi |
| آدرس صفحه اصلی | https://github.com/tkatva/adform-api-wrapper |
| آدرس اینترنتی | https://pypi.org/project/dagmar-adform-api-wrapper/ |
| مجوز | MIT |
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
---------------
```python
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
نیازمندی
| مقدار | نام |
|---|---|
| >=2.21.0 | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl dagmar-adform-api-wrapper-1.0.0:
pip install dagmar-adform-api-wrapper-1.0.0.whl
نصب پکیج tar.gz dagmar-adform-api-wrapper-1.0.0:
pip install dagmar-adform-api-wrapper-1.0.0.tar.gz