Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/knsh14/go-bankcode
https://github.com/knsh14/go-bankcode
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/knsh14/go-bankcode
- Owner: knsh14
- License: mit
- Created: 2021-02-11T15:39:28.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-15T05:02:20.000Z (almost 4 years ago)
- Last Synced: 2024-06-20T11:11:46.848Z (5 months 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
---![CI](https://github.com/knsh14/go-bankcode/workflows/CI/badge.svg)
[![Go Reference](https://pkg.go.dev/badge/github.com/knsh14/go-bankcode.svg)](https://pkg.go.dev/github.com/knsh14/go-bankcode)# About
unofficial [bankcode API]( https://bankcode-jp.com/ ) client for Go# Example
```
package mainimport (
"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