Versions in this module Expand all Collapse all v0 v0.1.0 Jun 16, 2026 Changes in this version + const ExitAuth + const ExitGeneric + const ExitNotFound + const ExitOK + const ExitRateLimited + const ExitServer + const ExitUsage + const ExitValidation + func ExitCode(err error) int + type APIError struct + Code string + Message string + StatusCode int + func (e *APIError) Error() string + type Client struct + func New(baseURL, apiKey string) (*Client, error) + func (c *Client) CreateContent(ctx context.Context, req CreateContentRequest) (json.RawMessage, json.RawMessage, error) + func (c *Client) DeleteContent(ctx context.Context, id int) (json.RawMessage, json.RawMessage, error) + func (c *Client) GetContent(ctx context.Context, id int) (json.RawMessage, json.RawMessage, error) + func (c *Client) GetMedia(ctx context.Context, id int) (json.RawMessage, json.RawMessage, error) + func (c *Client) ListContent(ctx context.Context, limit int, cursor string, filters ListContentFilters) (json.RawMessage, json.RawMessage, error) + func (c *Client) ListMedia(ctx context.Context, limit int, cursor string) (json.RawMessage, json.RawMessage, error) + func (c *Client) PublishContent(ctx context.Context, id int) (json.RawMessage, json.RawMessage, error) + func (c *Client) UnpublishContent(ctx context.Context, id int) (json.RawMessage, json.RawMessage, error) + func (c *Client) UpdateContent(ctx context.Context, id int, req UpdateContentRequest) (json.RawMessage, json.RawMessage, error) + func (c *Client) UploadMedia(ctx context.Context, req UploadMediaRequest) (json.RawMessage, json.RawMessage, error) + type CreateContentRequest struct + Body string + Format string + IsPublished bool + Language string + PostType string + Tags []string + Title string + type ListContentFilters struct + Author string + Language string + PostType string + Search string + Status string + Tags []string + type UpdateContentRequest struct + Body string + Format string + IsPublished bool + Language string + PostType string + Tags []string + Title string + type UploadMediaRequest struct + File io.Reader + Filename string + Metadata map[string]string