Skip to content

helpfulrobot/plumpss-twitter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#SilverStripe Twitter Helper

##Installation

composer require plumpss/twitter

##Usage

Add YAML config for your keys, tokens and secrets:

PlumpTwitterFeed:
  twitter_consumer_key: ''
	twitter_consumer_secret: ''
	twitter_oauth_token: ''
	twitter_oauth_token_secret: ''

Then obtain Tweets for the user you require:

PlumpTwitterFeed::get_tweets('plumpdigital', 10, TRUE);

The get_tweets method returns an ArrayList of ArrayData so can be output in templates using:

<% loop Tweets %>
  $Html
  $Date.Nice
<% end_loop %>

About

Silverstripe Twitter helper module

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%