package main
import (
"context"
boltgo "github.com/BoltApp/bolt-go"
"github.com/BoltApp/bolt-go/models/components"
"log"
)
func main() {
ctx := context.Background()
s := boltgo.New(
boltgo.WithSecurity(components.Security{
Oauth: boltgo.String("<YOUR_OAUTH_HERE>"),
APIKey: boltgo.String("<YOUR_API_KEY_HERE>"),
}),
)
res, err := s.Account.GetDetails(ctx, "<value>", boltgo.String("<value>"))
if err != nil {
log.Fatal(err)
}
if res.Account != nil {
// handle response
}
}