@hirotoni/datagojp-apiclient-typescript
v0.3.1
Published
Api client module for www.data.go.jp written in Typescript. For more detail info about the site, visit https://www.data.go.jp/for-developer/for-developer
Downloads
1
Readme
Description
API client module for https://www.data.go.jp written in Typescript.
For more detail info about the API, visit https://www.data.go.jp/for-developer/for-developer
Installation
## npm
npm i @hirotoni/datagojp-apiclient-typescript
## yarn
yarn add @hirotoni/datagojp-apiclient-typescript
Usage
import { ApiClient } from "@hirotoni/datagojp-apiclient-typescript";
const client = new ApiClient();
client
.fetchGroupList({
all_fields: true,
order_by: "name",
})
.then((data) => {
if (data.success) {
console.log(data.result);
}
});