All URIs are relative to https://prod.api.appcluster01.ca-central-1.ezmax.com/rest
Method | HTTP request | Description |
---|---|---|
ezmaxproductGetAutocompleteV2 | GET /2/object/ezmaxproduct/getAutocomplete/{sSelector} | Retrieve Ezmaxproducts and IDs |
EzmaxproductGetAutocompleteV2Response ezmaxproductGetAutocompleteV2(sSelector, opts)
Retrieve Ezmaxproducts and IDs
Get the list of Ezmaxproduct to be used in a dropdown or autocomplete control.
import EZmaxApiDefinitionFull from 'e_zmax_api_definition__full';
let defaultClient = EZmaxApiDefinitionFull.ApiClient.instance;
// Configure API key authorization: Authorization
let Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
let apiInstance = new EZmaxApiDefinitionFull.ObjectEzmaxproductApi();
let sSelector = "sSelector_example"; // String | The type of Ezmaxproducts to return
let opts = {
'eFilterActive': "'Active'", // String | Specify which results we want to display.
'sQuery': "sQuery_example", // String | Allow to filter the returned results
'Accept_Language': new EZmaxApiDefinitionFull.HeaderAcceptLanguage() // HeaderAcceptLanguage |
};
apiInstance.ezmaxproductGetAutocompleteV2(sSelector, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
sSelector | String | The type of Ezmaxproducts to return | |
eFilterActive | String | Specify which results we want to display. | [optional] [default to 'Active'] |
sQuery | String | Allow to filter the returned results | [optional] |
Accept_Language | HeaderAcceptLanguage | [optional] |
EzmaxproductGetAutocompleteV2Response
- Content-Type: Not defined
- Accept: application/json