plasma-products-api-client-js

Products API JS client

Usage no npm install needed!

<script type="module">
  import plasmaProductsApiClientJs from 'https://cdn.skypack.dev/plasma-products-api-client-js';
</script>

README

Products

Kind: global class

new Products()

Products API JS client.

In order to use Products API you should create an instance of this class.

import Products from "tm-products-api-client-js";
const products = new Products ('http://api.templatemonster.com/products/v1', 'en');
const list = products.getProducts ([12345, 55555]);

products.getProducts(ids) ⇒ *

Return product information for given identifiers.

Kind: instance method of Products

Param Type Description
ids Array.<int> Product identifiers