Important: This documentation applies to v2 of this package.
For v3 docs see vpic.shaggytech.com

Class

GetManufacturerDetails

api/actions/GetManufacturerDetails.GetManufacturerDetails(userConfigopt)

Implemented by NHTSA.

Extends api/Fetch.Fetch.

Constructor

# new GetManufacturerDetails(userConfigopt)

Parameters:
Name Type Attributes Description
userConfig FetchConfig <optional>

User configuration options to construct the class with.

View Source api/actions/GetManufacturerDetails.ts, line 27

Methods

# async GetManufacturerDetails(manufacturer) → {Promise.<GetManufacturerDetailsResponse>}

This provides the details for a specific manufacturer that is requested.

  • If supplied manufacturer is a number - method will do exact match on Manufacturer's Id.
  • If supplied manufacturer is a string - it will look for manufacturers whose name is LIKE the provided name, (it accepts a partial manufacturer name as an input).
  • Multiple results are returned in case of multiple matches.
Parameters:
Name Type Description
manufacturer string | number

Manufacturer Name (string) or Manufacturer ID (number).

View Source api/actions/GetManufacturerDetails.ts, line 42

Api Response object.