Skip to main content

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


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)

Uploaded Source

Built Distribution

pyfreewheel-0.1.0-py3-none-any.whl (16.0 kB view hashes)

Uploaded Python 3

Supported by

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