Versions in this module Expand all Collapse all v0 v0.0.2 Mar 19, 2026 v0.0.1 Mar 15, 2026 Changes in this version + const ExitAPIError + const ExitAuthError + var Version = "dev" + type APIError struct + Code int + Message string + Method string + Path string + RequestID string + StatusCode int + func (e *APIError) Error() string + func (e *APIError) ExitCode() int + func (e *APIError) Hint() string + type Client struct + APIKey string + AccessToken string + BaseURL string + DataURL string + Debug bool + HTTP *http.Client + Quiet bool + Secret string + Timeout time.Duration + Trace bool + UserAgent string + Verbose bool + func New(cfg *config.Resolved) *Client + func (c *Client) Delete(path string, params url.Values) (json.RawMessage, error) + func (c *Client) Get(path string, params url.Values) (json.RawMessage, error) + func (c *Client) GetData(path string, params url.Values) (json.RawMessage, error) + func (c *Client) Patch(path string, params url.Values, body any) (json.RawMessage, error) + func (c *Client) Post(path string, params url.Values, body any) (json.RawMessage, error) + func (c *Client) Put(path string, params url.Values, body any) (json.RawMessage, error) + func (c *Client) RawRequest(method, fullURL string, body any) (json.RawMessage, error) + func (c *Client) SetTimeout(d time.Duration)