move twitter api to addon; there's still a bit of cleanup remaining, mostly dealing with abstracting the authentication calls and separating out the twitter authentication structure from the zot api.
This commit is contained in:
parent
f74f7d543e
commit
b80674bf2e
@ -3,10 +3,20 @@ namespace Zotlabs\Module;
|
||||
|
||||
require_once('include/api.php');
|
||||
|
||||
|
||||
|
||||
class Api extends \Zotlabs\Web\Controller {
|
||||
|
||||
|
||||
function init() {
|
||||
$args = [];
|
||||
call_hooks('api_register',$args);
|
||||
|
||||
api_register_func('api/client/register', 'api_client_register', false);
|
||||
api_register_func('api/oauth/request_token', 'api_oauth_request_token', false);
|
||||
api_register_func('api/oauth/access_token', 'api_oauth_access_token', false);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
function post() {
|
||||
if(! local_channel()) {
|
||||
notice( t('Permission denied.') . EOL);
|
||||
|
1619
include/api.php
1619
include/api.php
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user