Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

httpie-nsof-1.6.tar.gz (4.3 kB view hashes)

Uploaded source

Built Distribution

httpie_nsof-1.6-py2.py3-none-any.whl (6.4 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page