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

Class

GetModelsForMakeId

api/actions/GetModelsForMakeId.GetModelsForMakeId(userConfigopt)

Implemented by NHTSA.

Extends api/Fetch.Fetch.

Constructor

# new GetModelsForMakeId(userConfigopt)

Parameters:
Name Type Attributes Description
userConfig FetchConfig <optional>

User configuration options to construct the class with.

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

Methods

# async GetModelsForMakeId(makeID) → {Promise.<GetModelsForMakeIdResponse>}

This returns the Models in the vPIC dataset for a specified Make whose Id is equal to the makeId in the vPIC Dataset.

Parameters:
Name Type Description
makeID number

Vehicle make ID (number).

View Source api/actions/GetModelsForMakeId.ts, line 39

Api Response object.

Promise.<GetModelsForMakeIdResponse>