aboutsummaryrefslogtreecommitdiffstats
path: root/include/api_zot.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-06 20:34:23 -0800
committerzotlabs <mike@macgirvin.com>2016-12-06 20:34:23 -0800
commit641e9ff50811a993a2486f8b1c37e3235c64da1f (patch)
treefcb5670ad472aefca1eab17ca5a745c7b79f95c2 /include/api_zot.php
parentabb045e1ffc73cded20df613933b2c68a76cf9c1 (diff)
downloadvolse-hubzilla-641e9ff50811a993a2486f8b1c37e3235c64da1f.tar.gz
volse-hubzilla-641e9ff50811a993a2486f8b1c37e3235c64da1f.tar.bz2
volse-hubzilla-641e9ff50811a993a2486f8b1c37e3235c64da1f.zip
api files improvements/fixes and documentation
Diffstat (limited to 'include/api_zot.php')
-rw-r--r--include/api_zot.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/api_zot.php b/include/api_zot.php
index a7a377bf4..35025f5f8 100644
--- a/include/api_zot.php
+++ b/include/api_zot.php
@@ -118,7 +118,13 @@
function api_attach_list($type) {
logger('api_user: ' . api_user());
- json_return_and_die(attach_list_files(api_user(),get_observer_hash(),'','','','created asc'));
+ $hash = ((array_key_exists('filehash',$_REQUEST)) ? $_REQUEST['filehash'] : '');
+ $filename = ((array_key_exists('filename',$_REQUEST)) ? $_REQUEST['filename'] : '');
+ $filetype = ((array_key_exists('filetype',$_REQUEST)) ? $_REQUEST['filetype'] : '');
+ $start = ((array_key_exists('start',$_REQUEST)) ? intval($_REQUEST['start']) : 0);
+ $records = ((array_key_exists('records',$_REQUEST)) ? intval($_REQUEST['records']) : 0);
+
+ json_return_and_die(attach_list_files(api_user(),get_observer_hash(),$hash,$filename,$filetype,'created asc',$start,$records));
}