Method: BlogMarks::Client#find_marks
- Defined in:
- lib/blogmarks/client.rb
#find_marks(options = {}) ⇒ Object
Find some marks in public marks
This function accept an options hash, where options can be :
-
:lastinteger from -1 to …Limit number of results (default: 30) -
:offsetpositive integerFirst result offset, for paging... (default: 0) -
:searchstringSearches for string in blogmarks (title, desc) + tags -
:tagsstringSearches for requested public tags -
:private_tagsstringRecherche les blogmarks contenant les tags privés indiqués (*). -
:relatedregexp??? -
:authorstring <user>Searches only in <user>'s marks -
:privatetrue | falseIf true, also search in private marks (default: false) -
:monthinteger 01 to 12if used with year, search only in marks posted durint that month -
:yearinteger YYYYRestrict search to marks posted during that year -
:levelpositive integer <level>Restrict search to marks posted by at least <level> users -
:order_byissued|modified|created|popularityResults sorting mode (default: issued) -
:order_typeasc|descResults dorting direction (default: desc)
112 113 114 115 116 117 118 |
# File 'lib/blogmarks/client.rb', line 112 def find_marks( ={} ) url = build_url( "#{api_url}/marks", ) res = send_request(url) parse_xml_response(res) end |