Versions in this module Expand all Collapse all v2 v2.0.0 Oct 8, 2026 Changes in this version + func CodeOf(err error) string + func StatusOf(err error) int + type Bytes []byte + func (b *Bytes) UnmarshalJSON(data []byte) error + func (b Bytes) MarshalJSON() ([]byte, error) + type Client struct + APIKey string + BaseURL string + Cookie string + HTTP *http.Client + OnCookie func(cookie string) + UserAgent string + func (c *Client) Do(ctx context.Context, r Request, out any) error + func (c *Client) Get(ctx context.Context, path string, query url.Values, out any) error + func (c *Client) Raw(ctx context.Context, r Request) (*Response, error) + func (c *Client) Send(ctx context.Context, method, path string, body, out any) error + type Error struct + Code string + Message string + Status int + func (e *Error) Error() string + type Request struct + Body io.Reader + ContentLength int64 + ContentType string + Headers map[string]string + JSON any + Method string + NoAuth bool + Path string + Query url.Values + type Response struct + Body io.ReadCloser + Headers http.Header + Status int