0.0
No release in over a year
gBizINFO API client for Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

 Project Readme

gBizINFO Ruby Client

CI Yard Docs

A Ruby client for gBizINFO APIs.

Installation

Add this line to your application's Gemfile:

gem 'gbizinfo-ruby'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install gbizinfo-ruby

Usage

client = Gbizinfo::Client.new(
  token: 'xxxxxxxxxx'
)

# Search for a corporation
options = { name: '経済産業省' }
client.hojin_search(options)

# Fetch corporate information
client.hojin(corporate_number: '4000012090001')

Global Settings

The following global settings are supported via Gbizinfo.configure.

setting description
token gBizINFO API token.
user_agent User-agent.
endpoint gBizINFO API endpoint.
adapter Optional HTTP adapter to use, defaults to Faraday.default_adapter.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ryoma123/gbizinfo-ruby.

License

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