Documentation
¶
Index ¶
- type Client
- func (c *Client) Get(endpoint string, params map[string]string) map[string]any
- func (c *Client) History(params map[string]string) map[string]any
- func (c *Client) Images(params map[string]string) map[string]any
- func (c *Client) InternationalVINDecoder(params map[string]string) map[string]any
- func (c *Client) LienAndTheft(params map[string]string) map[string]any
- func (c *Client) MarketValue(params map[string]string) map[string]any
- func (c *Client) ObdCodesDecoder(params map[string]string) map[string]any
- func (c *Client) OwnershipAddress(params map[string]string) map[string]any
- func (c *Client) OwnershipPerson(params map[string]string) map[string]any
- func (c *Client) OwnershipVin(params map[string]string) map[string]any
- func (c *Client) OwnershipZip(params map[string]string) map[string]any
- func (c *Client) PlateDecoder(params map[string]string) map[string]any
- func (c *Client) PlateImageRecognition(imageURL string) map[string]any
- func (c *Client) Recalls(params map[string]string) map[string]any
- func (c *Client) RecallsBatchDownload(params map[string]string) map[string]any
- func (c *Client) RecallsBatchResults(params map[string]string) map[string]any
- func (c *Client) RecallsBatchStatus(params map[string]string) map[string]any
- func (c *Client) RecallsYmm(params map[string]string) map[string]any
- func (c *Client) Specs(params map[string]string) map[string]any
- func (c *Client) SubmitRecallsBatch(body any) map[string]any
- func (c *Client) VinOCR(imageURL string) map[string]any
- func (c *Client) YearMakeModel(params map[string]string) map[string]any
- func (c *Client) YmmOptions(params map[string]string) map[string]any
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a minimal CarsXE API client that works with simple key/value maps.
func (*Client) InternationalVINDecoder ¶
InternationalVINDecoder => GET /v1/international-vin-decoder (vin)
func (*Client) LienAndTheft ¶ added in v1.0.4
func (*Client) MarketValue ¶
MarketValue => GET /v2/marketvalue Required: vin Optional: state (US state code), mileage (numeric string), condition (excellent|clean|average|rough)
func (*Client) ObdCodesDecoder ¶
ObdCodesDecoder => GET /obdcodesdecoder (code)
func (*Client) OwnershipAddress ¶ added in v1.4.0
OwnershipAddress => GET /v1/ownership/address (address, zip; include?, variant?)
func (*Client) OwnershipPerson ¶ added in v1.4.0
OwnershipPerson => GET /v1/ownership/person (first_name, last_name, address, zip; include?)
func (*Client) OwnershipVin ¶ added in v1.4.0
OwnershipVin => GET /v1/ownership/vin (vin; include?)
func (*Client) OwnershipZip ¶ added in v1.4.0
OwnershipZip => GET /v1/ownership/zip (zip; gender?, min_age?, max_age?, income?, page?, limit?, include?, variant?)
func (*Client) PlateDecoder ¶
PlateDecoder => GET /v2/platedecoder (plate, country, state?, district?)
func (*Client) PlateImageRecognition ¶
PlateImageRecognition => POST /platerecognition with JSON {"image": "<url>"}
func (*Client) RecallsBatchDownload ¶ added in v1.4.0
RecallsBatchDownload => GET /v1/recalls-batch/download (batchId) Returns decoded JSON on error/JSON responses, or {"csv": "<text>"} for CSV.
func (*Client) RecallsBatchResults ¶ added in v1.4.0
RecallsBatchResults => GET /v1/recalls-batch/results (batchId)
func (*Client) RecallsBatchStatus ¶ added in v1.4.0
RecallsBatchStatus => GET /v1/recalls-batch/status (batchId)
func (*Client) RecallsYmm ¶ added in v1.4.0
RecallsYmm => GET /v1/recalls-ymm (year, make, model)
func (*Client) SubmitRecallsBatch ¶ added in v1.4.0
SubmitRecallsBatch => POST /v1/recalls-batch/submit JSON body: vins ([]string) and/or csv and/or csvUrl; webhookUrl optional
func (*Client) YearMakeModel ¶
YearMakeModel => GET /v1/ymm (year, make, model, trim?)
type Option ¶
type Option func(*Client)
Option configures a Client instance.
func WithBaseURL ¶
WithBaseURL overrides the default API base URL.
func WithHTTPClient ¶
WithHTTPClient allows providing a custom *http.Client.
func WithSource ¶
WithSource changes the default "source" query parameter (default: "go").