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>

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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for httpie-edgegrid-1.0.5.tar.gz
Algorithm Hash digest
SHA256 9a8a1f0d0c07f43e24e3644fe9714749a0c3ec123c4315a2267485ba7bf4ba6e
MD5 e5a326563e09cb463f4fc2d132bea509
BLAKE2b-256 3483b347bf694fea2dbe1669670e0bddf84b5f1f5e66fd484bc796b7be755408

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page