mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
535 B
535 B
package main
import (
"context"
"github.com/formancehq/stack/ledger/client"
"github.com/formancehq/stack/ledger/client/models/components"
"log"
)
func main() {
s := client.New(
client.WithSecurity(components.Security{
ClientID: "",
ClientSecret: "",
}),
)
ctx := context.Background()
res, err := s.Ledger.V1.GetInfo(ctx)
if err != nil {
log.Fatal(err)
}
if res.ConfigInfoResponse != nil {
// handle response
}
}