No project description provided
Project description
Electric Kiwi Python API
What it does
Provide a simple API interface to the Electric Kiwi API and includes all endpoints available on the juice hacker site
What it does not
session management / token management, there are enough libraries and frameworks that already do this very well, no point reinventing the wheel
Authentication has been left to you.
How to use it
# set env for url
os.environ["ELECTRICKIWI_BASE_URL"] = "https://api-dev.electrickiwi.co.nz"
# your session with a authentication token
from electrickiwi_api import ElectricKiwiApi
from electrickiwi_api import HeaderAuthentication
api = ElectricKiwiApi(authentication_method=HeaderAuthentication(token="<secret_value>"))
# call it
renew the token with
api._authentication_method=HeaderAuthentication(token="<secret_value>")
TODO
renew session token by calling the token endpoint
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
electrickiwi-api-0.5.4.tar.gz
(15.7 kB
view hashes)
Built Distribution
Close
Hashes for electrickiwi_api-0.5.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35fa8521e8d14cfe9f260a051dcc819fa6bc7a582fb020fe740e79174cd65c09 |
|
MD5 | 2279d39ceb20017bf655b97ca5b12304 |
|
BLAKE2b-256 | 5ed4e94510aaba5d41eec2495b60260adb4dad46332762871dacd30c8728a9ae |