Skip to content

Instantly share code, notes, and snippets.

@vosst
Created January 23, 2017 21:06
Show Gist options
  • Save vosst/c53d59d558aa8546b8f178cf1a7ab9c0 to your computer and use it in GitHub Desktop.
Save vosst/c53d59d558aa8546b8f178cf1a7ab9c0 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"github.com/mitch000001/go-hbci/client"
)
func main() {
config := client.Config{
BankID: "12030000",
AccountID: "secret",
PIN: "secret",
URL: "",
HBCIVersion: 0}
c, err := client.New(config)
if err != nil {
panic(err)
}
accounts, err := c.Accounts()
if err != nil {
panic(err)
}
for _, account := range accounts {
fmt.Printf("%+v\n", account)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment