diff options
author | friendica <info@friendica.com> | 2013-05-22 19:12:45 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-05-22 19:12:45 -0700 |
commit | 3b707b533afd7b48df9e5e2bad909f91927d54fd (patch) | |
tree | d8f50c3181c93fe1107aec6ab56f17769cff1454 /include/api.php | |
parent | aa1eb2d89e7e4011ed43fdb391e6ced695a9521f (diff) | |
download | volse-hubzilla-3b707b533afd7b48df9e5e2bad909f91927d54fd.tar.gz volse-hubzilla-3b707b533afd7b48df9e5e2bad909f91927d54fd.tar.bz2 volse-hubzilla-3b707b533afd7b48df9e5e2bad909f91927d54fd.zip |
add api/red/channel/stream POST method (post_activity_item()), add additional endpoint to channel export to api/red/channel/export/basic
Diffstat (limited to 'include/api.php')
-rw-r--r-- | include/api.php | 12 |
1 files changed, 12 insertions, 0 deletions
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) { |