sling-connector
v3.0.8
Published
Helps connect to Sling API endpoints
Downloads
26
Keywords
Readme
Sling Connector for Node.js
This is a simple re-usable sling connector for Node.
Usage:
var SlingConnector = require("@entropy/sling-connector");
var sc = new SlingConnector({
baseUri: "http://127.0.0.1:4502/",
username: "admin",
password: "admin"
});
sc.get("/content/my-site/en/promo-page/_jcr_content",
function(err, data){
console.log("One thing:", data);
});
sc.get("/content/my-site/en/offers/_jcr_content",
function(err, data){
console.log("Another thing:", data);
});