Shopletzy JavaScript Shop SDK
Shop SDK provides nice javascript api to interact with Shopletzy Storefront APIs
This library is distributed on npm
. In order to add it as a dependency, run the following command:
$ npm i @shopletzy/shop-sdk
if (url.includes("locations")) {
url = 'https://shop-api.testing.shopletzy.com' + url
} else {
url = 'http://localhost:4000' + url
}