Forum Discussion

mayank's avatar
11 years ago

Lithium API to create a module to get the 3 most recent posts on other server

Lithium API to create a module to get the 3 most recent posts on other site
  • PaoloT's avatar
    PaoloT
    11 years ago

    You will need to traverse the response object to find out the data you want

     

    Examples:

     

        success: function(data) {
    		var resp = data.response;
    		
    		alert("Response status is: " + resp.status);
    		alert("Response messages: " + resp.node_message_context.message.length);
    		alert("First message subject : " +resp.node_message_context.message[0].subject.$);
    		 
        }

     Of course the above are merely examples and should not be used in production - but it gives you an idea.