SPlus.User.getProfileByName (accountName, url, function (userProfileProperties){
//Loop the Array of user profile properties
for (var i=0; i < userProfileProperties.length; i++) {
//Getting a JSON object with one of the properties
var property = userProfileProperties [i];
//Getting the name of the current property
var name = property ['name'];
//Getting the displayValues Array of the current property
var displayValues = property ['displayValues'];
//Loop the Array of displayValues of the current property
for (var j=0; j < displayValues.length; j++) {
//TODO: Handle the Array of displayValues
}
//TODO: Implement what to do with each user profile property
}
}, function (errorResponse){
var error = errorResponse['error#displayValue']; //Getting the error
//TODO: Implement how to handle errors
});