twitter search api with jquery error

后端 未结 2 2033
臣服心动
臣服心动 2020-12-28 19:52

I need to request a twitter search with jquery using twitter api. After read documentation I write this code:

  $.getJSON(\"http://search.twitter.com/search.         


        
2条回答
  •  遥遥无期
    2020-12-28 20:25

    Just to add a bit more to the answer you can use the following code to display text within each returned tweet.

    $.getJSON("http://search.twitter.com/search.json?callback=?&q=stackoverflow",
    
    function(data){
    
    for (i=0; iText: " + data.results[i].text + "
    " + "

    Created at: " + data.results[i].created_at +"



    "); } });

    Then within your body html put the following div

提交回复
热议问题