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>
Set the auth-type to edgegrid and use -a section_name: to choose a credential set from the .edgerc credentials file. Start the api_endpoint with a : to avoid using the long Akamaia token based hostname.
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
File details
Details for the file httpie-edgegrid-1.0.2.tar.gz.
File metadata
- Download URL: httpie-edgegrid-1.0.2.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de36c8b72544baba42e75855cc55eaf2ba43f6295912db17088dd2f688d4cdc9
|
|
| MD5 |
ea7dc900c0d091f28dc6b5a618f524d7
|
|
| BLAKE2b-256 |
f1b3d6ab88d5957c57555b88a5cde2eef1ed7e217b24ab0e10d0ef17391b4b71
|