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:
zotlabs 2016-11-08 14:54:55 -08:00
parent f74f7d543e
commit b80674bf2e
2 changed files with 41 additions and 1592 deletions

View File

@ -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);

File diff suppressed because it is too large Load Diff