Hey devs!
We know how much developers appreciate a solid SDK – and we’ve been working hard to deliver just that! Introducing our brand-new JavaScript SDK tailored for all you JavaScript enthusiasts out there. 🎉
What makes it special?
✅ Already in use in several React Native apps – so you know it’s battle-tested.
✅ Packed with features designed to make your life easier.
✅ Built with open-source goodness and developer feedback in mind.
🔗 Check it out here: https://www.npmjs.com/package/sleekshop-js-sdk
We’d love to hear your thoughts! Try it out, explore the features, and let us know what works and what could be even better. Your feedback helps us shape the future of this tool. 💬
Let’s make it as sleek and powerful as its name. 🚀
How to use it:
# Using npm
npm install sleekshop-js-sdk
# Using yarn
yarn add sleekshop-js-sdk
# Using pnpm
pnpm add sleekshop-js-sdk
# Using bun
bun add sleekshop-js-sdk
First you need to initialize the sdk:
import Sleekshop from 'sleekshop-js-sdk';
const sleekshop = new Sleekshop(
"https://yourinstance.sleekshop.net/srv/service/", // Sleekshop API URL
"yourinstance_jYkL7fPmQw2eVtNgHs3S", // licence username
"jYkL7fPmQw2eVtNgHs3S", // licence password
"jYkL7fPmQw2eVtNgHs3S" // optional licence secret key - required for some API calls
);
Now you can use the sdk to interact with the API. For example, to get a new session:
ESM:
const session = await sleekshop.sessions.getNewSession();
CommonJS:
sleekshop.sessions.getNewSession().then((session) => {
console.log(session);
});