1.2.0 • Published 2 years ago
monthly-sdk-js v1.2.0
Monthly Cloud JS SDK
Installation
npm install monthly-sdk-js
Usage
const storage = require('monthly-sdk-js').storage();
Usage examples:
storage.endpoint('routes').get().then(routes => {}); // get routes using default app language
storage.endpoint('menus').locale('en').get().then(menus => {}); // get menus in pre-defined language
storage.endpoint('contents').find(31).then(content => {}); // find content
storage.endpoint('contents').website(3).id(31).buildUrl(); // build url for specific website and content id
storage.list(100).findListing(200).then(listing => {}); // find listing item
storage.website(1).findContent(2).then(content => {}); // Simple way to find content
storage.getRoutes('en').then(routes => {});; // Simple way to access routes
Check test.js
for more use cases.