A Go client for the Sbanken API
Exernal information:
See this page on how to get access to Sbankens API.
ctx := context.Background()
cfg := sbanken.Config{
ClientID: os.Getenv("CLIENT_ID"),
ClientSecret: os.Getenv("CLIENT_SECRET"),
}
c, err := sbanken.NewClient(ctx, &cfg, nil)
if err != nil {
log.Fatal(err)
}
accounts, err := c.ListAccounts(ctx)
if err != nil {
log.Fatal(err)
}
log.Println(accounts)
See pkg.go.dev.