Documentation
¶
Overview ¶
Package items provides API operations for Truestamp items.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateItemResponse ¶
type CreateItemResponse struct {
ID string
State string
ClaimsHash string
ItemHash string
Visibility string
Tags []string
TeamID string
Name string
Hash string
HashType string
}
CreateItemResponse holds the parsed JSON:API response for a created item.
func CreateItem ¶
func CreateItem(apiURL, apiKey, team string, claims map[string]any, visibility string, tags []string) (*CreateItemResponse, error)
CreateItem sends a JSON:API POST request to create a new item. claims is the nested claims map (hash, hash_type, name, etc.). visibility and tags are top-level item attributes.
Click to show internal directories.
Click to hide internal directories.