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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file pyfreewheel-0.1.0.tar.gz.

File metadata

  • Download URL: pyfreewheel-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.0

File hashes

Hashes for pyfreewheel-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7951addd098947964c751c1982d77115a28aac95882315f0d3b6aa9ecc2a471d
MD5 c6d2580520af560f352ec4217c91780b
BLAKE2b-256 2270abb2bf767a0d1b4e5e5b0502c4f948b5b270699d58a39f1ee0e06164391d

See more details on using hashes here.

File details

Details for the file pyfreewheel-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyfreewheel-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.0

File hashes

Hashes for pyfreewheel-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7519cd66d807595b7e7aa3fa38ee4c79375c263849b54a4d6d38b00a34b51287
MD5 064de2609b7f37d753f53cadec38d57d
BLAKE2b-256 fb870c61ac3f84ee7e1914850c6add3933d6f252a8e699ef0d83481d2f418e49

See more details on using hashes here.

Supported by

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