Access the latest tweets from anywhere (user timeline, list, followers, etc).
Once configured using the Twitter API credentials, the default behaviour is to return the tweets from the authenticated user account.
The behaviour can be changed by specifying a method representing an API call, as detailed in the CodeBird docs - https://github.com/jublonet/codebird-php#3-mapping-api-methods-to-codebird-function-calls
When an API call requires parameters, these can be specified in the Parameters field, so e.g.:
Method: lists_statuses Parameters: slug=my_list_name&owner_screen_name=my_screen_name
Display is left up to you. In your template you can do something like:
<ul> <?php foreach (Latest_Tweets::range(1) as $tweet): ?> <li> <strong> <?php echo $tweet->user->name ?> <span><a href="http://twitter.com/<?php echo $tweet->user->screen_name ?>"><?php echo $tweet->user->screen_name ?></a></span> </strong> <p><?php echo Latest_Tweets::highlight($tweet->text) ?></p> </li> <? endforeach ?> </ul>
You can also get just one tweet with:
Requires: 3.0.1 or higher
Compatible up to: 3.7.1
Last Updated: 2013-12-12
0 of 1 support threads in the last two months have been resolved.
Got something to say? Need help?