Using HTTPie with the Python Authentication Library

APIs

The Veracode Python Authentication Library provides a simple integration with HTTPie for an easy, reliable way to use Veracode APIs requiring HMAC from the command line. Use this plugin to load the API credentials, generate an HMAC authorization header, and issue an HTTP call to a Veracode API with a valid endpoint.

For example:
http --auth-type=veracode_hmac "https://api.veracode.com/appsec/v1/applications"
Calls to other API endpoints are very similar. The default HTTP method is GET but other methods are simple to use.

To learn more about HTTPie, run http --help to review the HTTPie documentation. The authentication aspect does not vary and the plugin works effortlessly. All the other varying aspects are particular to the API endpoint you want to call.