Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.
/ hachi Public archive

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

License

Notifications You must be signed in to change notification settings

ninoseki/hachi

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published