gBizINFO REST API クライアント
参考:https://github.com/settings/tokens
.npmrc ファイルへ以下を追記する~/.npmrc:
//npm.pkg.github.com/:_authToken={{手順1.1で発行したアクセストークン}}
{{package.jsonが配置されているディレクトリ}}/.npmrc:
@ihori-system:registry=https://npm.pkg.github.com
参考:https://info.gbiz.go.jp/hojin/api_registration/form
$ npm install @ihori-system/gbizinfo
サンプルコード:
import { GbizinfoClient } from '@ihori-system/gbizinfo'
const client = new GbizinfoClient({token: '{{手順2で取得したAPIトークン}}'});
client.findByCorporateNumber('8000012010038')
.then((corporate) => console.log(corporate.name)); // デジタル庁
https://ihori-system.github.io/gbizinfo.js/
Generated using TypeDoc