summaryrefslogtreecommitdiff
path: root/plugins/TwitterBridge/scripts
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-10-05 13:25:28 -0700
committerBrion Vibber <brion@pobox.com>2010-10-05 13:25:28 -0700
commiteb04df583a1a3afb4ca7de5ffd59fee4a6903210 (patch)
tree94b950c030f48a504c3208c8a287f047f0b29438 /plugins/TwitterBridge/scripts
parent76353ede54edd8e99ddb9c209ff408486282c0c5 (diff)
Buncha cleanup
Diffstat (limited to 'plugins/TwitterBridge/scripts')
-rw-r--r--plugins/TwitterBridge/scripts/streamtest.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/TwitterBridge/scripts/streamtest.php b/plugins/TwitterBridge/scripts/streamtest.php
index 96ff33fa5..eddec39a7 100644
--- a/plugins/TwitterBridge/scripts/streamtest.php
+++ b/plugins/TwitterBridge/scripts/streamtest.php
@@ -92,11 +92,22 @@ $stream->hookEvent('favorite', function($data) {
$data['target']['screen_name'],
$data['target_object']['text']);
});
+$stream->hookEvent('unfavorite', function($data) {
+ printf("%s unfavorited %s's notice: %s\n",
+ $data['source']['screen_name'],
+ $data['target']['screen_name'],
+ $data['target_object']['text']);
+});
$stream->hookEvent('follow', function($data) {
printf("%s friended %s\n",
$data['source']['screen_name'],
$data['target']['screen_name']);
});
+$stream->hookEvent('unfollow', function($data) {
+ printf("%s unfriended %s\n",
+ $data['source']['screen_name'],
+ $data['target']['screen_name']);
+});
$stream->hookEvent('delete', function($data) {
printf("Deleted status notification: %s\n",
$data['status']['id']);