Nsof OAuth 2 plugin for HTTPie.
Project description
Nsof OAuth 2 plugin for the HTTPie command line HTTP client.
Installation
$ pip install httpie-nsof
You should now see nsof under --auth-type in $ http --help output.
Setup
$ httpie-nsof-setup
Configure Nsof’s auth plugin with your creds (saved in ~/.httpie/config.json). The credentials can be either a username/password or API Key ID/API Key Secret
- Notes:
if username is not provided in conf file it will be searched at HTTPIE_NSOF_USERNAME
if password is not provided in conf file it will be searched at HTTPIE_NSOF_PASSWORD
manually inputted username/password supersede conf file and environment variables
Usage
$ http --auth-type=nsof GET https://api.nsof.io/v1/users
It’s possible to pass a different effective org using the env EORG:
$ EORG=nsof http --auth-type=nsof GET https://api.nsof.io/v1/users
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
Built Distribution
Hashes for httpie_nsof-1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f5e89698a1c7149c6dedfac079f36e200dfd358339aceb6466a7bce00bce13b |
|
MD5 | 17dd68d88c9d7e7cd6b8457b7dd86166 |
|
BLAKE2b-256 | 1aae5efe58e06b83b14eae65d0357ea06a081aeaefe90bbe6840bbf4ce47b1cd |