gbizinfo
Gbizinfo - the Ruby gem for the gBizINFO REST API
各REST APIはHTTPリクエストヘッダX-hojinInfo-api-tokenに動作確認用のAPIトークンDTcLxzo1lZaUYaQPVdSRxdS4MzlXNCs4を指定して動作を確認することができます。
※動作確認用のAPIトークンはこのページでの動作確認でのみ使用してください。
This SDK is automatically generated by the OpenAPI Generator project:
- API version: 1.0
- Package version: 0.2.1
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
Installation
Build a gem
To build the Ruby code into a gem:
gem build gbizinfo.gemspec
Then either install the gem locally:
gem install ./gbizinfo-0.2.1.gem
(for development, run gem install --dev ./gbizinfo-0.2.1.gem
to install the development dependencies)
or publish the gem to a gem hosting service, e.g. RubyGems.
Finally add this to the Gemfile:
gem 'gbizinfo', '~> 0.2.1'
Install from Git
If the Ruby gem is hosted at a git repository: https://github.com/uichi/gbizinfo, then add the following in the Gemfile:
gem 'gbizinfo', :git => 'https://github.com/uichi/gbizinfo.git'
Include the Ruby code directly
Include the Ruby code directly using -I
as follows:
ruby -Ilib script.rb
Getting Started
Please follow the installation procedure and then run the following code:
require 'gbizinfo'
api_instance = Gbizinfo::GBizINFORESTAPIApi.new
x_hojin_info_api_token = 'x_hojin_info_api_token_example'
corporate_number = 'corporate_number_example'
begin
result = api_instance.get_certification_using_get(x_hojin_info_api_token, corporate_number)
p result
rescue Gbizinfo::ApiError => e
puts "Exception when calling GBizINFORESTAPIApi->get_certification_using_get: #{e}"
end
Documentation for API Endpoints
All URIs are relative to https://info.gbiz.go.jp/hojin
Documentation for Models
Documentation for Authorization
Endpoints do not require authorization.