From 3b707b533afd7b48df9e5e2bad909f91927d54fd Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 22 May 2013 19:12:45 -0700 Subject: add api/red/channel/stream POST method (post_activity_item()), add additional endpoint to channel export to api/red/channel/export/basic --- include/api.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include') diff --git a/include/api.php b/include/api.php index c2de7a704..486d44cd4 100644 --- a/include/api.php +++ b/include/api.php @@ -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) { -- cgit v1.2.3