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/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',
|
||||||
|
@ -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!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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'));
|
||||||
|
Loading…
Reference in New Issue
Block a user