Socket
Socket
Sign inDemoInstall

tweetie

Package Overview
Dependencies
63
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tweetie

Simple Twitter Feed Plugin that works with new Twitter 1.1 API.


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
67.4 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 29 Mar 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc