summaryrefslogtreecommitdiff
path: root/lib/router.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-02-22 20:04:47 -0800
committerZach Copley <zach@controlyourself.ca>2009-02-22 20:04:47 -0800
commitcab322d21b8c8077192a1396bf13050d734c2aba (patch)
tree15d547a28f1669a65ac0ce2720bc1b89e15043ee /lib/router.php
parent5e646ead492fc62b52f67af6c3a23295ef502345 (diff)
Ticket #1108 - Added 'social graph' methods to the API
Diffstat (limited to 'lib/router.php')
-rw-r--r--lib/router.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/router.php b/lib/router.php
index a41d35f22..b18a5523e 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -265,6 +265,33 @@ class Router
'apiaction' => 'friendships'),
array('method' => 'exists(\.(xml|json|rss|atom))'));
+
+ // Social graph
+
+ $m->connect('api/friends/ids/:argument',
+ array('action' => 'api',
+ 'apiaction' => 'statuses',
+ 'method' => 'friendsIDs'));
+
+ foreach (array('xml', 'json') as $e) {
+ $m->connect('api/friends/ids.'.$e,
+ array('action' => 'api',
+ 'apiaction' => 'statuses',
+ 'method' => 'friendsIDs.'.$e));
+ }
+
+ $m->connect('api/followers/ids/:argument',
+ array('action' => 'api',
+ 'apiaction' => 'statuses',
+ 'method' => 'followersIDs'));
+
+ foreach (array('xml', 'json') as $e) {
+ $m->connect('api/followers/ids.'.$e,
+ array('action' => 'api',
+ 'apiaction' => 'statuses',
+ 'method' => 'followersIDs.'.$e));
+ }
+
// account
$m->connect('api/account/:method',