add api/red/channel/stream POST method (post_activity_item()), add additional endpoint to channel export to api/red/channel/export/basic
This commit is contained in:
parent
aa1eb2d89e
commit
3b707b533a
@ -515,8 +515,20 @@ require_once('include/security.php');
|
||||
json_return_and_die(identity_basic_export(api_user()));
|
||||
}
|
||||
api_register_func('api/export/basic','api_export_basic', true);
|
||||
api_register_func('api/red/channel/export/basic','api_export_basic', true);
|
||||
|
||||
|
||||
function api_channel_stream(&$a, $type) {
|
||||
if(api_user() === false) {
|
||||
logger('api_channel_stream: no user');
|
||||
return false;
|
||||
}
|
||||
|
||||
if($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||
json_return_and_die(post_activity_item($_POST));
|
||||
}
|
||||
api_register_func('api/red/channel/stream','api_channel_stream', true);
|
||||
|
||||
|
||||
function api_statuses_mediap(&$a, $type) {
|
||||
if (api_user() === false) {
|
||||
|
Reference in New Issue
Block a user