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

Class

GetVehicleTypesForMakeId

api/actions/GetVehicleTypesForMakeId.GetVehicleTypesForMakeId(userConfigopt)

Implemented by NHTSA.

Extends api/Fetch.Fetch.

Constructor

# new GetVehicleTypesForMakeId(userConfigopt)

Parameters:
Name Type Attributes Description
userConfig FetchConfig <optional>

User configuration options to construct the class with.

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

Methods

# async GetVehicleTypesForMakeId(makeID) → {Promise.<GetVehicleTypesForMakeIdResponse>}

This returns all the Vehicle Types in the vPIC dataset for a specified Make and whose ID equals the make ID in the vPIC Dataset.

Parameters:
Name Type Description
makeID number

Vehicle make ID.

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

Api Response object.