Using HTTPie with the Python Authentication Library

APIs

The Veracode APIs require that you enable HMAC authentication for your Python application as a security measure for accessing API resources. The Python authentication library provides an integration between HTTPie and the Veracode APIs, which adds HMAC authentication when using the Veracode APIs from the command line.

You use the library to:
  • Load the API credentials
  • Generate an HMAC authorization header
  • Issue an HTTP call to a Veracode API with a valid endpoint

The default HTTP method is GET. For command examples, see Using the Veracode REST APIs or Using the Veracode XML APIs.

To learn more about HTTPie, you can run http --help and review the HTTPie documentation. HMAC authentication is the same for all calls, but the other aspects of authentication are specific to the API endpoint you want to call.