Get Twitter Feed as JSON without authentication

前端 未结 8 574
难免孤独
难免孤独 2021-01-30 18:16

I wrote a small JavaScript a couple of years ago that grabbed a users (mine) most recent tweet and then parsed it out for display including links, date etc.

It used this

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-30 18:47

    You can use a Twitter API wrapper, such as TweetJS.com which offers a limited set of the Twitter API's functionality, but does not require authentication. It's called like this;

    TweetJs.ListTweetsOnUserTimeline("PetrucciMusic",
    function (data) {
        console.log(data);
    });
    

提交回复
热议问题