Skip to main content

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


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.0.tar.gz (6.5 kB view details)

Uploaded Source

File details

Details for the file httpie-edgegrid-1.0.0.tar.gz.

File metadata

File hashes

Hashes for httpie-edgegrid-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7f4ac5d98a030154b1ed82e86c2319f8047c04bff9d57adab6eb9d3279b3d51e
MD5 fabafafe5837184238cf045fff2155c6
BLAKE2b-256 6a98a081abf51c5dcd4e84eb24920aad45527a31cfb49772baae61da2e76c6e4

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