Home
> Uncategorized > TweetJS Display #Tweets on your website with #Javascript only
TweetJS Display #Tweets on your website with #Javascript only
This is probably the start of a much larger project, but starting today, I launched TweetJS.com which is a browser-based Javascript library, that lets you display tweets on your website. No authentication needed.
Currently, it has two methods, ListTweetsOnUserTimeline and Search, where TweetJs.ListTweetsOnUserTimeline takes two parameters, the username, and a callback function. It will return data on tweets posted by a given user. and TweetJs.Search takes two parameters, the search query, and a callback function. It will return data on tweets that contain the search query.
They are called like this
TweetJs.ListTweetsOnUserTimeline("PetrucciMusic", function (data) { console.log(data); });
Under the hood, this makes an ajax call back to our server, which then makes the call to Twitter, using our authentication keys.
Categories: Uncategorized
Comments (0)
Trackbacks (0)
Leave a comment
Trackback