@mounteq/mounteq-api-client
v1.0.76
Published
JavaScript client for the Mounteq API with support for Node.js, Next.js and browsers
Downloads
20
Readme
mounteq-api-client
Installation
$ npm install @mounteq/mounteq-api-client
Usage
import MounteqApiClient from 'mounteq-api-client';
const client = new MounteqApiClient({
apiUrl: 'https://api.mounteq.com',
apyKey: '123e4567-e89b-12d3-a456-426614174000',
defaultLanguage: 'en',
});
const products = await client.getProducts();
API
MounteqApiClient
constructor(options: MounteqApiClientOptions)
Creates a new instance of the client. The options are:
apiUrl
: The URL of the APIapiKey
: The API keydefaultLanguage
: The default language to use for the API requests
setLocale for request
client.setLocale('de');