3.0.1 • Published 6 years ago

tweetie v3.0.1

Weekly downloads
3
License
ISC
Repository
-
Last release
6 years ago

Tweetie Build Status

jQuery Tweetie - Simple Twitter Feed Plugin that works with new Twitter API.

Install

Download the lastest version of jQuery Tweetie.

In order to successfully use jQuery Tweetie, you have to have server-side/backend API. The plugin comes with very simple PHP backend that you can easily setup and get going.

Use

Initialize just like any other plugin.

$('.tweets').tweetie();

Settings

PropertyTypeDescription
urlStringRequired. API URL.
typeStringRequired. Fetch tweets via hashtags, search terms, username and lists. Available options timeline, list, search and hashtag.
templateStringRequired. Template for each individual tweet. Learn more here.
paramsObjectRequired. Parameters required to fetch collection of relevant tweets matching a specified query. Only timeline, list and search/hashtag params are accepted.
dateFormatStringFormating for created_at attribute. Learn more here.

Templating

Tweetie uses curly brace templating syntax. You can access any tweet properties using the {{}} double curly brase. For your convinece every link, @username and #hashtag in the tweet body is automatically hyper-linked.

Example

{{tweet.text}} tweeted by {{tweet.user.screen_name}} at {{tweet.created_at}}

Date Format

FormatExampleDescription
%d1..31Day of month
%m1..12Month number
%BJanuary..DecemberMonth name
%bJan..DecMonth name abbreviated
%Y20184 digit year
%y182 digit year

Date format automatically applies to created_at template attribute.