Dev:APIbookmarksGET
Aus YaCyWiki
Inhaltsverzeichnis
/xml/bookmarks/get_bookmarks[.xml | .json]
Parameters
Examples
XBEL
- Retrieve all bookmarks as one single XBEL file
http://localhost:8090/xml/bookmarks/get_bookmarks.xml?display=xbel
- Retrieve a specific folder as XBEL file
http://localhost:8090/xml/bookmarks/get_bookmarks.xml?display=xbel&qtype=folders&query=/newspaper
- Retrieve bookmarks tagged with a specific tag as XBEL file
http://localhost:8090/xml/bookmarks/get_bookmarks.xml?display=xbel&qtype=tagss&query=news
XML
- Retrieve all bookmarks as XML posts
http://localhost:8090/xml/bookmarks/get_bookmarks.xml
<posts> <post href="http://www.ldodds.com/foaf/foaf-a-matic" description="FOAF-a-matic -- Sich selbst beschreiben mit RDF" extended="" hash="bw53tMAD-w8Y" tag="FOAF," time="2009-01-11T20:52:11Z" private="false"/> <post href="http://www.der-sportschiffer.de/" description="Der Sportschiffer" extended="Der Sportschiffer ist ein Onlinemagazin für den Bootssport." hash="TVd2OQI0Nf5D" tag="Portal,Segeln," time="2009-01-11T09:27:08Z" private="false"/> </posts>
RSS
- Retrieve bookmarks as RSS feed
http://localhost:8090/xml/bookmarks/get_bookmarks.xml?display=rss
JSON
- Retrieve page 1 with a maximum of 15 bookmarks per page, tagged with 'news', sorted ascending by date
http://192.168.2.100:8090/xml/bookmarks/get_bookmarks.json?page=1&rp=15&sortname=date&sortorder=asc&query=news&qtype=tags
{ page: 1, total: 2, posts: [ {bookmark:["o-ceKQUxszjR","public","The Inquirer","http://www.theinquirer.net/","IT,Nachrichten,News,","/unsorted,","2008-09-14T16:48:33Z"]}, {bookmark:["u3mZfQkdIgAZ","public","News Forge","http://www.newsforge.com/","Linux,Nachrichten,News,","/unsorted,","2008-09-14T16:48:33Z"]}, ] }
Used
- YaCy-UI