Hachi(蜂
) is a dead simple TheHive API wrapper for Ruby.
Note: This library supports TheHive v4 & v5.
gem install hachi
Hachi tries to load API settings from ENV
by default. Or you can set them manually.
Name | Default | Desc. |
---|---|---|
api_key | ENV["THEHIVE_API_KEY"] | TheHive API key |
api_endpoint | ENV["THEHIVE_API_ENDPOINT"] | TheHive API endpoint |
api_version | ENV["THEHIVE_API_VERSION"] | TheHive API version (nil for v4, v1 for v5) |
require "hachi"
# when given nothing, it tries to load your API key from ENV
api = Hachi::API.new
# or you can set them manually
api = Hachi::API.new(api_endpoint: "http://your_api_endpoint", api_key: "yoru_api_key")
The gem is available as open source under the terms of the MIT License.