Category: Meteor

Meteor

Meteor.http. Get Proper Example

  if (Meteor.is_server) { Meteor.methods({ fetchFromService: function(userName) { var url = “https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=”+userName+”&count=10”; //synchronous GET var result = Meteor.http.get(url, {timeout:30000}); if(result.statusCode==200) […]