Skip to content

Commit

Permalink
Bump up v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
osamingo committed Feb 18, 2022
1 parent 4794a12 commit 4a6d58a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ Unofficially [kenall](https://kenall.jp/) (ケンオール) client written by Go
## Install

```shell
$ go get github.com/osamingo/go-kenall@v1.2.1
$ go get github.com/osamingo/go-kenall@v2.0.0
```

## APIs supported by this library

- [郵便番号検索API](https://kenall.jp/docs/api-introduction/#%E9%83%B5%E4%BE%BF%E7%95%AA%E5%8F%B7%E6%A4%9C%E7%B4%A2api)
- [市区町村API](https://kenall.jp/docs/api-introduction/#%E5%B8%82%E5%8C%BA%E7%94%BA%E6%9D%91api)
- [法人番号検索API](https://kenall.jp/docs/api-introduction/#%E6%B3%95%E4%BA%BA%E7%95%AA%E5%8F%B7%E6%A4%9C%E7%B4%A2api)

## Usage

```go
Expand Down Expand Up @@ -51,6 +57,14 @@ func main() {
city := resCity.Cities[0]
fmt.Println(city.Prefecture, city.City)
// Output: 東京都 千代田区

res, err := cli.GetCorporation(context.Background(), "7000012050002")
if err != nil {
log.Fatal(err)
}
corp := res.Corporation
fmt.Println(corp.PrefectureName, corp.CityName)
// Output: 東京都 千代田区
}
```

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/osamingo/go-kenall

go 1.16
go 1.17

0 comments on commit 4a6d58a

Please sign in to comment.