Project

hachi

0.0
Repository is archived
Low commit activity in last 3 years
No release in over a year
A dead simple TheHive API wrapper.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 13.0
~> 2.3
~> 2.7
~> 3.11
~> 6.1
~> 3.14
 Project Readme

Hachi

Gem Version Ruby CI Coverage Status CodeFactor

Hachi() is a dead simple TheHive API wrapper for Ruby.

Note: This library supports TheHive v4 & v5.

Installation

gem install hachi

Usage

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")

License

The gem is available as open source under the terms of the MIT License.