aboutsummaryrefslogtreecommitdiff
path: root/mod/twitterservice/vendors/twitter/load.php
blob: 388b4e3587aa45ac37aecbfefeda9a59979fd4d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

require_once 'twitter.class.php';


$twitter = new Twitter('pokusnyucet2', '123456');

$withFriends = FALSE;
$channel = $twitter->load($withFriends);

?>

<ul>
<?foreach ($channel->status as $status): ?>
	<li><a href="http://twitter.com/<?=$status->user->screen_name?>"><?=$status->user->name?></a>:
	<?=$status->text?>
	<small>at <?=date("j.n.Y H:m", strtotime($status->created_at))?></small>
	</li>
<?endforeach?>
</ul>