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/wadl',
'tags/timeline',
'laconica/oembed',
'groups/timeline');
static $bareauth = array('statuses/user_timeline',

View File

@ -171,4 +171,12 @@ class TwitapilaconicaAction extends TwitterapiAction
parent::handle($args);
$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
$m->connect('api/laconica/:method',
array('action' => 'api',
'apiaction' => 'laconica'));
$m->connect('api/laconica/:method',
array('action' => 'api',
'apiaction' => 'laconica'));