Commit 0aeea427 authored by Craig Andrews's avatar Craig Andrews

Added stub oembed api endpoint

parent b05b998d
......@@ -129,6 +129,7 @@ class ApiAction extends Action
'laconica/config',
'laconica/wadl',
'tags/timeline',
'laconica/oembed',
'groups/timeline');
static $bareauth = array('statuses/user_timeline',
......
......@@ -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!");
}
}
......@@ -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'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment