Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 431 Bytes

USAGE.md

File metadata and controls

27 lines (23 loc) · 431 Bytes
package main

import (
	"context"
	"firehydrant"
	"log"
)

func main() {
	s := firehydrant.New(
		firehydrant.WithSecurity("<YOUR_API_KEY_HERE>"),
	)

	ctx := context.Background()
	res, err := s.AccountSettings.GetAiPreferences(ctx)
	if err != nil {
		log.Fatal(err)
	}
	if res.AIEntitiesPreferencesEntity != nil {
		// handle response
	}
}