title: How to make an API call using meteor
body: <p>Ok here is the twitter API,</p>
  
  <pre><code>http://search.twitter.com/search.atom?q=perkytweets
  </code></pre>
  
  <p>Can any one give me any hint about how to go about calling this API or link using <a href="http://meteor.com" rel="noreferrer">Meteor</a></p>
  
  <p><strong><em>Update::</em></strong></p>
  
  <p>Here is the code that i tried but its not showing any response</p>
  
  <pre><code>if (Meteor.isClient) {
      Template.hello.greeting = function () {
          return "Welcome to HelloWorld";
      };
  
      Template.hello.events({
          'click input' : function () {
              checkTwitter();
          }
      });
  
      Meteor.methods({checkTwitter: function () {
          this.unblock();
          var result = Meteor.http.call("GET", "http://search.twitter.com/search.atom?q=perkytweets");
          alert(result.statusCode);
      }});
  }
  
  if (Meteor.isServer) {
      Meteor.startup(function () {
      });
  }
  </code></pre>