Versions in this module Expand all Collapse all v1 v1.0.0 Jul 21, 2026 Changes in this version + const DefaultBaseURL + const Version + const WebhookSecretPrefix + const WebhookToleranceSeconds + func AddQueryValue(query url.Values, key string, value any) + func Stringify(value any) string + func ValidateWebhook(body []byte, headers http.Header, secret string, ...) (string, error) + func VerifyWebhookSignature(body []byte, headers http.Header, secret string) error + type APIError struct + Body []byte + Header http.Header + StatusCode int + func (e *APIError) Error() string + type ClientBase struct + func NewClientBase(version string, options ...Option) *ClientBase + func (c *ClientBase) BaseURL() string + func (c *ClientBase) Do(ctx context.Context, request Request, out any) error + func (c *ClientBase) HTTPClient() *http.Client + func (c *ClientBase) Version() string + type EncodingError struct + Err error + Op string + func (e *EncodingError) Error() string + func (e *EncodingError) Unwrap() error + type Error interface + type ErrorDecoder func(statusCode int, body []byte, header http.Header) error + type NetworkError struct + Err error + func (e *NetworkError) Error() string + func (e *NetworkError) Unwrap() error + type Option func(*ClientBase) + func WithAccessToken(accessToken string) Option + func WithBaseURL(baseURL string) Option + func WithHTTPClient(httpClient *http.Client) Option + func WithHeader(key, value string) Option + func WithVersion(version string) Option + type RateLimitError struct + RetryAfter int + func (e *RateLimitError) Error() string + func (e *RateLimitError) Unwrap() error + type Request struct + Body any + Errors map[int]ErrorDecoder + Method string + Path string + PathParams map[string]any + Query url.Values + ResponseType ResponseType + type ResponseType string + const ResponseJSON + const ResponseNone + const ResponseText + type ServerError struct + Body []byte + StatusCode int + func (e *ServerError) Error() string + type WebhookError struct + Err error + Message string + func NewWebhookError(message string, err error) *WebhookError + func (e *WebhookError) Error() string + func (e *WebhookError) Unwrap() error + type WebhookUnknownTypeError struct + EventType string + func NewWebhookUnknownTypeError(eventType string) *WebhookUnknownTypeError + func (e *WebhookUnknownTypeError) Unwrap() error + type WebhookVerificationError struct + func NewWebhookVerificationError(message string) *WebhookVerificationError + func (e *WebhookVerificationError) Unwrap() error