How to make an API call using meteor

后端 未结 5 2060
别跟我提以往
别跟我提以往 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:10

    on server side if you provide the call back to http.get it will be asynch call so my solutions to that undefined return on client was

    var result = HTTP.get(iurl); return result.data.response;

    as i did not pass a call back to HTTP.get so it waited until i got response. hope it helps

提交回复
热议问题