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

Class

GetMakeForManufacturer

api/actions/GetMakeForManufacturer.GetMakeForManufacturer(userConfigopt)

Implemented by NHTSA.

Extends api/Fetch.Fetch.

Constructor

# new GetMakeForManufacturer(userConfigopt)

Parameters:
Name Type Attributes Description
userConfig FetchConfig <optional>

User configuration options to construct the class with.

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

Methods

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

This returns all the Makes in the vPIC dataset for a specified 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).
  • manufacturer name can be a partial name, or a full name for more specificity (e.g., "988", "HONDA", "HONDA OF CANADA MFG., INC.", etc.).
  • 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/GetMakeForManufacturer.ts, line 44

Api Response object.

Promise.<GetMakeForManufacturer>