https://github.com/knsh14/go-bankcode
https://github.com/knsh14/go-bankcode
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/knsh14/go-bankcode
- Owner: knsh14
- License: mit
- Created: 2021-02-11T15:39:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-15T05:02:20.000Z (over 5 years ago)
- Last Synced: 2025-02-04T04:30:09.438Z (over 1 year ago)
- Language: Go
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
go-bankcode
---

[](https://pkg.go.dev/github.com/knsh14/go-bankcode)
# About
unofficial [bankcode API]( https://bankcode-jp.com/ ) client for Go
# Example
```
package main
import (
"context"
"fmt"
"log"
"github.com/knsh14/go-bankcode"
)
func main() {
client, err := bankcode.NewClient(bankcode.WithAPIKey("BANKCODE_API_KEY"))
if err != nil {
log.Fatal(err)
}
banks, err := client.ListBanks(context.Background(), &ListParameter{
Limit: 10,
})
if err != nil {
log.Fatal(err)
}
if len(banks.Data) > 0 {
for _, bank := range banks.Data {
fmt.Println(bank.Code, bank.Name)
}
}
}
```
# License
MIT License