This is a simple sdk that wraps some requests to Tienda Nube's endpoints. It provides easy configuration and methods to be able to manage the store from any app. Currently I just deployed the js version, in the future I will deploy the @types package so that you can use it with typescript.
First install the dependency:
npm install tienda-nube-js-sdk
or
yarn add tienda-nube-js-sdk
Then import it and start using it:
const tiendaNubeSDK = require("tienda-nube-js-sdk")
const tiendaNubeClient = new tiendaNubeSDK.TiendaNubeClient({
accessToken: "<YOUR_ACCESS_TOKEN>",
storeId: "<YOUR_STORE_ID>"
})
Then you can get information using the available methods:
tiendaNubeClient.getProducts().then((products) => {
console.log(products)
})
- Products
- Categories
- Images
- Orders
For more information you can read the TiendaNube API documentation, here.