Communicate with the Freewheel inbound API
Project description
pyfreewheel
Description
Communicate with the Freewheel inbound API: retrieve, create, and update information on sites, publishers, zones, etc.
Usage
Call freewheel.API()
with your inbound API key as the only positional argument to create an API object with functions retrieve(<endpoint>)
, update(<endpoint>)
, create(<endpoint>)
, corresponding to GET
, PUT
, and POST
respectively.
#import freewheel
FW_API_KEY = '<inbound api key>'
fw = freewheel.API(FW_API_KEY)
sites = fw.request('site')
print(sites.results)
example_zone = fw.request('zone', id=123456)
sid = example_zone.results['site_id']
updated = fw.update('site', {'name': 'New Name'}, id=sid)
print(updated.results)
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
pyfreewheel-0.1.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for pyfreewheel-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7519cd66d807595b7e7aa3fa38ee4c79375c263849b54a4d6d38b00a34b51287 |
|
MD5 | 064de2609b7f37d753f53cadec38d57d |
|
BLAKE2b-256 | fb870c61ac3f84ee7e1914850c6add3933d6f252a8e699ef0d83481d2f418e49 |