SPlus.Web.getWebsAndLists (url, function (webs, lists){
for (var i=0; i < webs.length; i++) {//Loop the webs Array
var web = webs [i];//Getting a JSON object with title and url properties
var webTitle = web['title'];//Getting one of the properties of web
//TODO: Implement what to do with each web element
}
for (var j=0; j < lists.length; j++) {//Loop the lists Array
var list = lists [j];//Getting a JSON object with several properties
var listTemplate = list['template'];//Getting one of the properties of list
//TODO: Implement what to do with each list element
}
}, function (errorResponse){
var error = errorResponse['error#displayValue']; //Getting the error
//TODO: Implement how to handle errors
}, function (cancelResponse){
//TODO: Implement how to handle a user’s cancel
});