-
-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
require_once '../src/twitter.class.php'; | ||
|
||
// ENTER HERE YOUR CREDENTIALS (see readme.txt) | ||
$twitter = new Twitter($consumerKey, $consumerSecret, $accessToken, $accessTokenSecret); | ||
|
||
// See https://dev.twitter.com/docs/api/1.1 | ||
$statuses = $twitter->request('statuses/retweets_of_me', 'GET'); | ||
|
||
?> | ||
<!doctype html> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<title>Twitter retweets of me</title> | ||
|
||
<ul> | ||
<?php foreach ($statuses as $status): ?> | ||
<li><a href="http://twitter.com/<?php echo $status->user->screen_name ?>"><img src="<?php echo htmlspecialchars($status->user->profile_image_url) ?>"> | ||
<?php echo htmlspecialchars($status->user->name) ?></a>: | ||
<?php echo Twitter::clickable($status->text) ?> | ||
<small>at <?php echo date("j.n.Y H:i", strtotime($status->created_at)) ?></small> | ||
</li> | ||
<?php endforeach ?> | ||
</ul> |