aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {