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

Class

GetVehicleVariableValuesList

api/actions/GetVehicleVariableValuesList.GetVehicleVariableValuesList(userConfigopt)

Implemented by NHTSA.

Extends api/Fetch.Fetch.

Constructor

# new GetVehicleVariableValuesList(userConfigopt)

Parameters:
Name Type Attributes Description
userConfig FetchConfig <optional>

User configuration options to construct the class with.

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

Methods

# async GetVehicleVariableValuesList(variableValue) → {Promise.<GetVehicleVariableValuesListResponse>}

This provides a list of all the accepted values for a given variable that are stored in the vPIC dataset.

This applies to only "Look up" type of variables.

  • variableValue can either be a:
    • Variable Name ("battery type" in first example, please use full name, not just part of it),
    • or Variable ID (number).
Parameters:
Name Type Description
variableValue string | number

The variable you want to get a values list of.

View Source api/actions/GetVehicleVariableValuesList.ts, line 43

Api Response object.