Skip to content

Instantly share code, notes, and snippets.

@thechangelog
Created March 26, 2010 05:33
Show Gist options
  • Save thechangelog/344547 to your computer and use it in GitHub Desktop.
Save thechangelog/344547 to your computer and use it in GitHub Desktop.
<?php $api = new clAPI('http://twitter.com/statuses/public_timeline.xml'); ?>
<?php if ($api->parse('10 minutes')): ?>
<ul>
<?php foreach($api->get('status', 3) as $status): ?>
<li>
<a href="http://twitter.com/<?php echo $status->get('user/screen_name') ?>">@<?php echo $status->get('user/screen_name') ?></a>:
<a href="http://twitter.com/<?php echo $status->get('user/screen_name') ?>/statuses/<?php echo $status->get('id') ?>"><?php echo $status->get('text') ?></a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment