Edgegrid plugin for HTTPie.
Project description
EdgeGrid plugin for HTTPie.
Installation
To install from sources:
$ python setup.py install
Usage
The EdgeGrid plugin relies on a .edgerc credentials file that needs to be created in your home directory and organized by [section] following the format below. Each [section] can contain a different credentials set allowing you to store all of your credentials in a single .edgerc file.
[default]
client_secret = xxxx
host = xxxx # Note, don't include the https:// here
access_token = xxxx
client_token = xxxx
max-body = xxxx
[section1]
client_secret = xxxx
host = xxxx # Note, don't include the https:// here
access_token = xxxx
client_token = xxxx
max-body = xxxx
Once you have the credentials set up, here is an example of what an Akamai OPEN API call would look like:
% http --auth-type edgegrid -a <section_name>: :/<api_endpoint>
Example
Making the diagnostic-tools API locations call:
% http --auth-type edgegrid -a default: :/diagnostic-tools/v1/locations
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
httpie-edgegrid-1.0.4.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for httpie-edgegrid-1.0.4.macosx-10.6-intel.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3442c7109ed4be413224dbf9958b6aa7ca7c21cf7b7b413db6dc4ebf13bb9300 |
|
MD5 | a522ee38b32052322e5da202c7d732d0 |
|
BLAKE2b-256 | fa984e445b02fbed0f6e58a7cc4715000052adf3e32da87d27a9e21937db5a97 |