I am new to Beanshell scripts, and i want to call a web service that retruns JSON
representing images, i am currently doing the call using the following javaScript:-
<script type="text/javascript">
$(function() {
$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?",
{
tags: "gulmarg",
tagmode: "any",
format: "json"
},
function(data) {
$.each(data.items, function(i,item){
$("<img/>").attr("src", item.media.m).appendTo("#images");
if ( i == 5 ) return false;
});
});
})
</script>
<div id="images"></div>
But i need to convert the above javaScript into BeanShell script? can anyone help my in this issue?
Best Regards