Versions in this module Expand all Collapse all v0 v0.1.0 Nov 6, 2026 Changes in this version + const APIKeyEnvironmentVariable + const DefaultBaseURL + const DefaultConcurrency + const DefaultRetryDelay + const DefaultTimeout + const MaxRetries + const MaxRetryDelay + const RetryBackoffFactor + const Version + func Bool(v bool) *bool + func Float(v float64) *float64 + func Int(v int64) *int64 + func String(v string) *string + type APIError struct + Message string + Response *Response + StatusCode int + func IsAPIError(err error) (*APIError, bool) + func (e *APIError) Error() string + type BatchResult struct + Err error + Index int + Value T + func Batch[I, T any](ctx context.Context, items []I, concurrency int, ...) []BatchResult[T] + type CheckProductParams struct + ID string + Wait *bool + type Client struct + func NewClient(apiKey string, options *ClientOptions) (*Client, error) + func (c *Client) CheckProduct(ctx context.Context, params *CheckProductParams, options ...RequestOption) (*Response, error) + func (c *Client) DeleteProduct(ctx context.Context, params *DeleteProductParams, options ...RequestOption) (*Response, error) + func (c *Client) FetchOffers(ctx context.Context, params *FetchOffersParams, options ...RequestOption) (*Response, error) + func (c *Client) GetAccount(ctx context.Context, options ...RequestOption) (*Response, error) + func (c *Client) GetAsinHistory(ctx context.Context, params *GetAsinHistoryParams, options ...RequestOption) (*Response, error) + func (c *Client) GetOffers(ctx context.Context, params *GetOffersParams, options ...RequestOption) (*Response, error) + func (c *Client) GetProduct(ctx context.Context, params *GetProductParams, options ...RequestOption) (*Response, error) + func (c *Client) ListProducts(ctx context.Context, params *ListProductsParams, options ...RequestOption) (*Response, error) + func (c *Client) Request(ctx context.Context, method, path string, params map[string]any, ...) (*Response, error) + func (c *Client) SearchAmazon(ctx context.Context, params *SearchAmazonParams, options ...RequestOption) (*Response, error) + func (c *Client) TrackProduct(ctx context.Context, params *TrackProductParams, options ...RequestOption) (*Response, error) + func (c *Client) UpdateProduct(ctx context.Context, params *UpdateProductParams, options ...RequestOption) (*Response, error) + type ClientOptions struct + BaseURL string + HTTPClient *http.Client + Headers map[string]string + MaxRetries int + RetryDelay time.Duration + Timeout time.Duration + type ConfigurationError struct + Err error + Message string + func (e *ConfigurationError) Error() string + func (e *ConfigurationError) Unwrap() error + type DeleteProductParams struct + ID string + type FetchOffersParams struct + Asin string + Marketplace *string + Refresh *bool + type GetAsinHistoryParams struct + Asin string + Days *int64 + Marketplace *string + type GetOffersParams struct + Asin string + Marketplace *string + type GetProductParams struct + Days *int64 + ID string + type ListProductsParams struct + Asin *string + Filter *string + Limit *int64 + Marketplace *string + Page *int64 + type RequestOption func(*requestOptions) + func WithHeader(name, value string) RequestOption + func WithMaxRetries(n int) RequestOption + func WithMethod(method string) RequestOption + type Response struct + Body []byte + ContentType string + Header http.Header + IsJSON bool + StatusCode int + func (r *Response) Decode(v any) error + func (r *Response) Map() (map[string]any, error) + type ResponseDecodingError struct + Err error + Message string + Response *Response + func (e *ResponseDecodingError) Error() string + func (e *ResponseDecodingError) Unwrap() error + type SearchAmazonParams struct + Marketplace *string + Query string + type SerializationError struct + Err error + Message string + Param string + func (e *SerializationError) Error() string + func (e *SerializationError) Unwrap() error + type TrackProductParams struct + IntervalMinutes *int64 + Marketplace *string + Product string + TargetPrice *float64 + Wait *bool + type TransportError struct + Err error + Message string + func (e *TransportError) Error() string + func (e *TransportError) Unwrap() error + type UpdateProductParams struct + AlertOnDrop *bool + ID string + IntervalMinutes *int64 + Paused *bool + TargetPrice *float64