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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7951addd098947964c751c1982d77115a28aac95882315f0d3b6aa9ecc2a471d
|
|
| MD5 |
c6d2580520af560f352ec4217c91780b
|
|
| BLAKE2b-256 |
2270abb2bf767a0d1b4e5e5b0502c4f948b5b270699d58a39f1ee0e06164391d
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7519cd66d807595b7e7aa3fa38ee4c79375c263849b54a4d6d38b00a34b51287
|
|
| MD5 |
064de2609b7f37d753f53cadec38d57d
|
|
| BLAKE2b-256 |
fb870c61ac3f84ee7e1914850c6add3933d6f252a8e699ef0d83481d2f418e49
|