@shaggytools/nhtsa-api-wrapper / Exports / api/endpoints/GetVehicleVariableValuesList
Module: api/endpoints/GetVehicleVariableValuesList
Table of contents
Functions
Type Aliases
Functions
GetVehicleVariableValuesList
▸ GetVehicleVariableValuesList(variableValue, doFetch?): Promise<NhtsaResponse<GetVehicleVariableValuesListResults>>
💡 More Information
GetVehicleVariableValuesList provides a list of all the accepted values for a given variable that are stored in the vPIC dataset.
If variableValue is a string, it must use full name, not just part of it, e.g., "Battery Type", not "Battery"
variableValue can be also be a number, which is the ID of the variable, e.g., 1, 2, 3, etc.
Parameters
| Name | Type | Description |
|---|---|---|
variableValue | string | number | The variable you want to get a values list of |
doFetch? | true | Whether to fetch the data or just return the URL (default: true) |
Returns
Promise<NhtsaResponse<GetVehicleVariableValuesListResults>>
- Api Response
object-or- urlstringifdoFetch = false
Defined in
api/endpoints/GetVehicleVariableValuesList.ts:29
▸ GetVehicleVariableValuesList(variableValue, doFetch): Promise<string>
Parameters
| Name | Type |
|---|---|
variableValue | string | number |
doFetch | false |
Returns
Promise<string>
Defined in
api/endpoints/GetVehicleVariableValuesList.ts:34
Type Aliases
GetVehicleVariableValuesListResults
Ƭ GetVehicleVariableValuesListResults: Object
Objects found in the Results array of GetVehicleVariableValuesList endpoint response.
Type declaration
| Name | Type |
|---|---|
ElementName | string |
Id | number |
Name | string |