httpie-nsof
Nsof OAuth 2 plugin for the HTTPie command line HTTP client.
Installation
$ python setup.py install
You should now see nsof under --auth-type in $ http --help output.
Usage
$ http --auth-type=nsof --auth='org/username:password' https://api.nsof.io/v1/users
You can also use HTTPie sessions:
# Create session
$ http --session=logged-in --auth-type=nsof --auth='org/username:password' https://api.nsof.io/v1/users
# Re-use auth
$ http --session=logged-in POST https://api.nsof.io/v1/users
You can set the default --auth-type=nsof option in the ~/.httpie/config.json file for convenience:
$ echo '{"default_options": ["--auth-type=nsof"]}' > ~/.httpie/config.json
$ http -a org/username:password https://api.nsof.io/v1/users
You can also set your org, username, password as default:
$ echo '{"default_options": ["--auth-type=nsof", "--auth=nsof/username:password"]}' > ~/.httpie/config.json
$ http https://api.nsof.io/v1/users
It’s possible to pass a different effective org using the env EORG:
$ EORG=nsof http https://api.nsof.io/v1/users
Metadata
Release files for httpie-nsof 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| httpie-nsof-0.1.tar.gz | 2.5 kB | Details |
Release files / httpie-nsof-0.1.tar.gz
| Download URL | httpie-nsof-0.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b61fded0bb1df90b28bc6466d50fdd9b14fedc90bbe9d0cf4dc6541879fb80b
|
|
BLAKE2b-256 checksum How to use checksums |
b247d627fad24872ff691d9c143b49bafa72f5987b3000098619687afeeda8bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |