fetch public tweets via twitter api 1.1, via client side code (js)

前端 未结 2 1299
别跟我提以往
别跟我提以往 2020-12-28 08:30

I\'m working on a basic personal homepage, consists of a single html document, a .css and jquery*.js file. I want to create a blog-ish look via fetching page content from tw

2条回答
  •  死守一世寂寞
    2020-12-28 08:54

    EDIT

    In the wonderful world of bad ideas, Twitter is sunsetting this answer, as of May 2013, and will require, at minimum, that you either use one of their widgets, and shoehorn it in, or that you set up an application and do application-level authentication, even for public-timeline GET requests.

    If they change their mind, or delay the throwing of the switch, this will at least continue to be here.


    Use the Search API:

    "http://search.twitter.com/search.json?q=nerdswguitars"
    

    You can use the URL-encoded # or @ in front of search terms. You can also use keywords like from or to, and specify limits, et cetera.

提交回复
热议问题