aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-05-22 19:12:45 -0700
committerfriendica <info@friendica.com>2013-05-22 19:12:45 -0700
commit3b707b533afd7b48df9e5e2bad909f91927d54fd (patch)
treed8f50c3181c93fe1107aec6ab56f17769cff1454 /include/api.php
parentaa1eb2d89e7e4011ed43fdb391e6ced695a9521f (diff)
downloadvolse-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.php12
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) {