Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 432 Bytes

USAGE.md

File metadata and controls

28 lines (23 loc) · 432 Bytes
package main

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

func main() {
	ctx := context.Background()

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

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