add status attribute to post in all relevant api functions
This commit is contained in:
parent
c57960623b
commit
49f1259c42
@ -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,7 +43,7 @@ foreach($bookmarks['bookmarks'] as $row) {
|
||||
$taglist = 'system:unfiled';
|
||||
}
|
||||
|
||||
echo "\t<post href=\"". filter($row['bAddress'], 'xml') .'" description="'. filter($row['bTitle'], 'xml') .'" '. $description .'hash="'. md5($row['bAddress']) .'" tag="'. filter($taglist, 'xml') .'" time="'. gmdate('Y-m-d\TH:i:s\Z', strtotime($row['bDatetime'])) ."\" />\r\n";
|
||||
echo "\t<post href=\"". filter($row['bAddress'], 'xml') .'" description="'. filter($row['bTitle'], 'xml') .'" '. $description .'hash="'. md5($row['bAddress']) .'" tag="'. filter($taglist, 'xml') .'" time="'. gmdate('Y-m-d\TH:i:s\Z', strtotime($row['bDatetime'])) . '" status="'. filter($row['bStatus'], 'xml') ."\" />\r\n";
|
||||
}
|
||||
|
||||
echo '</posts>';
|
||||
|
@ -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,7 +76,7 @@ foreach ($bookmarks['bookmarks'] as $row) {
|
||||
$taglist = 'system:unfiled';
|
||||
}
|
||||
|
||||
echo "\t<post href=\"". filter($row['bAddress'], 'xml') .'" description="'. filter($row['bTitle'], 'xml') .'" '. $description .'hash="'. $row['bHash'] .'" others="'. $bookmarkservice->countOthers($row['bAddress']) .'" tag="'. filter($taglist, 'xml') .'" time="'. gmdate('Y-m-d\TH:i:s\Z', strtotime($row['bDatetime'])) ."\" />\r\n";
|
||||
echo "\t<post href=\"". filter($row['bAddress'], 'xml') .'" description="'. filter($row['bTitle'], 'xml') .'" '. $description .'hash="'. $row['bHash'] .'" others="'. $bookmarkservice->countOthers($row['bAddress']) .'" tag="'. filter($taglist, 'xml') .'" time="'. gmdate('Y-m-d\TH:i:s\Z', strtotime($row['bDatetime'])) . '" status="'. filter($row['bStatus'], 'xml') ."\" />\r\n";
|
||||
}
|
||||
|
||||
echo '</posts>';
|
||||
|
@ -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<post href=\"". filter($row['bAddress'], 'xml') .'" description="'. filter($row['bTitle'], 'xml') .'" '. $description .'hash="'. md5($row['bAddress']) .'" tag="'. filter($taglist, 'xml') .'" time="'. gmdate('Y-m-d\TH:i:s\Z', strtotime($row['bDatetime'])) ."\" />\r\n";
|
||||
echo "\t<post href=\"". filter($row['bAddress'], 'xml') .'" description="'. filter($row['bTitle'], 'xml') .'" '. $description .'hash="'. md5($row['bAddress']) .'" tag="'. filter($taglist, 'xml') .'" time="'. gmdate('Y-m-d\TH:i:s\Z', strtotime($row['bDatetime'])) . '" status="'. filter($row['bStatus'], 'xml') ."\" />\r\n";
|
||||
}
|
||||
|
||||
echo '</posts>';
|
||||
|
@ -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,7 +78,7 @@ foreach ($bookmarks['bookmarks'] as $row) {
|
||||
$taglist = 'system:unfiled';
|
||||
}
|
||||
|
||||
echo "\t<post href=\"". filter($row['bAddress'], 'xml') .'" description="'. filter($row['bTitle'], 'xml') .'" '. $description .'hash="'. $row['bHash'] .'" tag="'. filter($taglist, 'xml') .'" time="'. gmdate('Y-m-d\TH:i:s\Z', strtotime($row['bDatetime'])) ."\" />\r\n";
|
||||
echo "\t<post href=\"". filter($row['bAddress'], 'xml') .'" description="'. filter($row['bTitle'], 'xml') .'" '. $description .'hash="'. $row['bHash'] .'" tag="'. filter($taglist, 'xml') .'" time="'. gmdate('Y-m-d\TH:i:s\Z', strtotime($row['bDatetime'])) . '" status="'. filter($row['bStatus'], 'xml') ."\" />\r\n";
|
||||
}
|
||||
|
||||
echo '</posts>';
|
||||
|
Loading…
Reference in New Issue
Block a user