kendama
Kendama - the Ruby gem for the 国税庁API
国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
This SDK is automatically generated by the OpenAPI Generator project:
- API version: 1.0.1
- Package version: 1.0.1
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
Installation
Build a gem
To build the Ruby code into a gem:
gem build kendama.gemspec
Then either install the gem locally:
gem install ./kendama-1.0.1.gem
(for development, run gem install --dev ./kendama-1.0.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 'kendama', '~> 1.0.1'
Install from Git
If the Ruby gem is hosted at a git repository: https://github.com/uichi/kendama, then add the following in the Gemfile:
gem 'kendama', :git => 'https://github.com/uichi/kendama.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 'kendama'
api_instance = Kendama::V1Api.new
id = 'id_example'
from = Date.parse('Tue Oct 01 09:00:00 JST 2024')
to = Date.parse('Tue Oct 01 09:00:00 JST 2024')
type = '21'
opts = {
division: '1',
divide: 'divide_example'
}
begin
result = api_instance.get_announcement_by_diff(id, from, to, type, opts)
p result
rescue Kendama::ApiError => e
puts "Exception when calling V1Api->get_announcement_by_diff: #{e}"
end
Documentation for API Endpoints
All URIs are relative to https://kensyo.invoice-kohyo.nta.go.jp
Documentation for Models
Documentation for Authorization
Endpoints do not require authorization.