How to make an API call using meteor

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

    Use Meteor.http.get. Per the docs:

    Meteor.http.get(url, [options], [asyncCallback]) Anywhere
    Send an HTTP GET request. Equivalent to Meteor.http.call("GET", ...).
    

    The docs actually include some examples of using Twitter, so you should be able to get started with them.

提交回复
热议问题