How to make an API call using meteor

后端 未结 5 2062
别跟我提以往
别跟我提以往 2020-12-07 10:19

Ok here is the twitter API,

http://search.twitter.com/search.atom?q=perkytweets

Can any one give me any hint about how to go about calling

5条回答
  •  隐瞒了意图╮
    2020-12-07 11:17

    Meteor.http.get on the client is async, so you will need to provide a callback function :

    Meteor.http.call("GET",url,function(error,result){
         console.log(result.statusCode);
    });
    

提交回复
热议问题