forked from GNUsocial/gnu-social
Added stub oembed api endpoint
This commit is contained in:
parent
b05b998d68
commit
0aeea42724
@ -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'));
|
||||
|
Loading…
Reference in New Issue
Block a user