Class: module:api/LanguagesApi

module:api/LanguagesApi(apiClient)

new module:api/LanguagesApi(apiClient)

Constructs a new LanguagesApi.

Parameters:
Name Type Description
apiClient module:ApiClient

Optional API client implementation to use, default to module:ApiClient#instance if unspecified.

Source:

Methods

getLanguages(opts) → {Promise}

getLanguages Lists all available languages (all languages used for a particular store). If the list of languages for a base store is empty, a list of all languages available in the system will be returned.

Parameters:
Name Type Description
opts Object

Optional parameters

Properties
Name Type Description
fields String

Response configuration (list of fields, which should be returned in response)

Source:
Returns:

a Promise">www.promisejs.org/|Promise}, with data of type module:models/LanguageList

Type
Promise

languagesWithHttpInfo(opts) → {Promise}

getLanguages Lists all available languages (all languages used for a particular store). If the list of languages for a base store is empty, a list of all languages available in the system will be returned.

Parameters:
Name Type Description
opts Object

Optional parameters

Properties
Name Type Description
fields String

Response configuration (list of fields, which should be returned in response)

Source:
Returns:

a Promise">www.promisejs.org/|Promise}, with an object containing data of type module:models/LanguageList and HTTP response

Type
Promise