package main
import (
"context"
"fmt"
"os"
contextdev "github.com/context-dot-dev/context-go-sdk/v2"
"github.com/context-dot-dev/context-go-sdk/v2/option"
)
func main() {
client := contextdev.NewClient(option.WithAPIKey(os.Getenv("CONTEXT_DEV_API_KEY")))
response, err := client.Utility.Prefetch(context.Background(), contextdev.UtilityPrefetchParams{
Type: "brand",
Identifier: contextdev.UtilityPrefetchParamsIdentifierUnion{
OfByEmail: &contextdev.UtilityPrefetchParamsIdentifierByEmail{Email: "[email protected]"},
},
})
if err != nil {
panic(err)
}
fmt.Println(response)
}