I've tried to call stackexchange api from client side using the below code, It is working fine
HTTP.call("GET",questionsURL,{params:{site:"stackoverflow",key:key,function(e,res)
{
if(e)
{
console.log("error"+e);
}
else
{
//logic
}
});
When I tried call the same function from server side it is returnig something I tried to log it and it is showing the following result
The server side code is
var futt=new Future();
HTTP.call("GET", userDetailsURL,{params:{site:"stackoverflow",key:key}},function(error,result)
{
futt.return(result);
console.log(result));
});
return futt.wait();
What is the issue here?Any one help me pls