Added stub oembed api endpoint

This commit is contained in:
Craig Andrews 2009-07-15 10:29:54 -04:00
parent b05b998d68
commit 0aeea42724
3 changed files with 13 additions and 0 deletions

View File

@ -129,6 +129,7 @@ class ApiAction extends Action
'laconica/config', 'laconica/config',
'laconica/wadl', 'laconica/wadl',
'tags/timeline', 'tags/timeline',
'laconica/oembed',
'groups/timeline'); 'groups/timeline');
static $bareauth = array('statuses/user_timeline', static $bareauth = array('statuses/user_timeline',

View File

@ -171,4 +171,12 @@ class TwitapilaconicaAction extends TwitterapiAction
parent::handle($args); parent::handle($args);
$this->serverError(_('API method under construction.'), 501); $this->serverError(_('API method under construction.'), 501);
} }
function oembed($args, $apidata)
{
parent::handle($args);
$url = $args['url'];
print_r($apidata);
die("oembed!");
}
} }

View File

@ -390,6 +390,10 @@ class Router
// laconica // laconica
$m->connect('api/laconica/:method',
array('action' => 'api',
'apiaction' => 'laconica'));
$m->connect('api/laconica/:method', $m->connect('api/laconica/:method',
array('action' => 'api', array('action' => 'api',
'apiaction' => 'laconica')); 'apiaction' => 'laconica'));