From 49f1259c420b6f13e2e76164b6950c23b9ba395c Mon Sep 17 00:00:00 2001 From: David Glenck Date: Thu, 16 Jan 2014 21:07:17 +0100 Subject: add status attribute to post in all relevant api functions --- www/api/posts_all.php | 7 +++++-- www/api/posts_get.php | 5 +++-- www/api/posts_public.php | 5 ++++- www/api/posts_recent.php | 7 +++++-- 4 files changed, 17 insertions(+), 7 deletions(-) (limited to 'www') diff --git a/www/api/posts_all.php b/www/api/posts_all.php index 7204b60..c70d14c 100644 --- a/www/api/posts_all.php +++ b/www/api/posts_all.php @@ -4,6 +4,9 @@ // del.icio.us behavior: // - doesn't include the filtered tag as an attribute on the root element (we do) +// Scuttle behavior: +// - returns privacy status of each bookmark. + // Force HTTP authentication first! $httpContentType = 'text/xml'; require_once 'httpauth.inc.php'; @@ -40,8 +43,8 @@ foreach($bookmarks['bookmarks'] as $row) { $taglist = 'system:unfiled'; } - echo "\t\r\n"; + echo "\t\r\n"; } echo ''; -?> \ No newline at end of file +?> diff --git a/www/api/posts_get.php b/www/api/posts_get.php index c20f904..e39058b 100644 --- a/www/api/posts_get.php +++ b/www/api/posts_get.php @@ -10,6 +10,7 @@ * * Scuttle behavior: * - Uses today, instead of the last bookmarked date, if no date is specified + * - returns privacy status of each bookmark. * * SemanticScuttle - your social bookmark manager. * @@ -75,8 +76,8 @@ foreach ($bookmarks['bookmarks'] as $row) { $taglist = 'system:unfiled'; } - echo "\t\r\n"; + echo "\t\r\n"; } echo ''; -?> \ No newline at end of file +?> diff --git a/www/api/posts_public.php b/www/api/posts_public.php index 0a09187..e4086b2 100644 --- a/www/api/posts_public.php +++ b/www/api/posts_public.php @@ -4,6 +4,9 @@ // del.icio.us behavior: // - doesn't include the filtered tag as an attribute on the root element (we do) +// Scuttle behavior: +// - returns privacy status of each bookmark. + // Force HTTP authentication first! //require_once('httpauth.inc.php'); $httpContentType = 'text/xml'; @@ -41,7 +44,7 @@ foreach($bookmarks['bookmarks'] as $row) { $taglist = 'system:unfiled'; } - echo "\t\r\n"; + echo "\t\r\n"; } echo ''; diff --git a/www/api/posts_recent.php b/www/api/posts_recent.php index 6c71e22..5fca30d 100644 --- a/www/api/posts_recent.php +++ b/www/api/posts_recent.php @@ -4,6 +4,9 @@ * optionally filtered by tag and/or number of posts * (default 15, max 100, just like del.icio.us). * + * Scuttle behavior: + * - returns privacy status of each bookmark. + * * SemanticScuttle - your social bookmark manager. * * PHP version 5. @@ -75,8 +78,8 @@ foreach ($bookmarks['bookmarks'] as $row) { $taglist = 'system:unfiled'; } - echo "\t\r\n"; + echo "\t\r\n"; } echo ''; -?> \ No newline at end of file +?> -- cgit v1.2.3