diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-08-02 10:35:03 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-08-02 10:35:03 -0400 |
commit | 43747391e80f0dbbfd2ba1f654aeb1fcbc4a1492 (patch) | |
tree | 4e22db90c39d0ea11ce4c45716a9cc00693d8630 /actions/twitapigroups.php | |
parent | 2934099fbd17281ed00055af654aa5b813d535a2 (diff) | |
parent | 45ad4cfe7253d1cd2da219378fd714644c906f53 (diff) |
Merge branch '0.8.x' of git@gitorious.org:laconica/mainline into 0.8.x
Diffstat (limited to 'actions/twitapigroups.php')
-rw-r--r-- | actions/twitapigroups.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/actions/twitapigroups.php b/actions/twitapigroups.php index 71a0776f4..f899bc369 100644 --- a/actions/twitapigroups.php +++ b/actions/twitapigroups.php @@ -51,6 +51,32 @@ require_once INSTALLDIR.'/lib/twitterapi.php'; class TwitapigroupsAction extends TwitterapiAction { + function show($args, $apidata) + { + parent::handle($args); + + common_debug("in groups api action"); + + $this->auth_user = $apidata['user']; + $group = $this->get_group($apidata['api_arg'], $apidata); + + if (empty($group)) { + $this->clientError('Not Found', 404, $apidata['content-type']); + return; + } + + switch($apidata['content-type']) { + case 'xml': + $this->show_single_xml_group($group); + break; + case 'json': + $this->show_single_json_group($group); + break; + default: + $this->clientError(_('API method not found!'), $code = 404); + } + } + function timeline($args, $apidata) { parent::handle($args); |