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 :

  • :last integer from -1 to …

    Limit number of results (default: 30)
    
  • :offset positive integer

    First result offset, for paging... (default: 0)
    
  • :search string

    Searches for string in blogmarks (title, desc) + tags
    
  • :tags string

    Searches for requested public tags
    
  • :private_tags string

    Recherche les blogmarks contenant les tags privés indiqués (*).
    
  • :related regexp

    ???
    
  • :author string <user>

    Searches only in <user>'s marks
    
  • :private true | false

    If true, also search in private marks	(default: false)
    
  • :month integer 01 to 12

    if used with year, search only in marks posted durint that month
    
  • :year integer YYYY

    Restrict search to marks posted during that year
    
  • :level positive integer <level>

    Restrict search to marks posted by at least <level> users
    
  • :order_by issued|modified|created|popularity

    Results sorting mode (default: issued)
    
  • :order_type asc|desc

    Results dorting direction	(default: desc)
    


112
113
114
115
116
117
118
# File 'lib/blogmarks/client.rb', line 112

def find_marks( options={} )
  url = build_url( "#{api_url}/marks", options )
  
  res = send_request(url)
  
  parse_xml_response(res)
end