Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (10 sloc) 559 Bytes

Star Searcher!

Star Searcher is just a simple Ruby client that lets you talk to your Star Search (This is an http://github.com/maddox/star-search).

Requirements

  • httparty (duh)

How Do I Do It?

Just like every other Ruby REST client

star_searcher = StarSearcher.new('stars.domain.com')

star_searcher.feed(3) => page 3 of JSON of stars

star_searcher.search('blue drink', 3) => page 3 of JSON of stars matching this query

star_searcher.by_author('maddox', 3) => page 3 of JSON of stars from maddox