Ruby gem for accessing the popshops API (www.popshops.com)
gem install popshops
require 'rubygems' require 'popshops' popshops = Popshops.new('YOUR_API_KEY') popshops.product_search(:query => {:catalog_key => 'CATALOG_KEY', :keywords => 'books'}) popshops.merchant_sarch(:query => {:catalog_key => 'CATALOG_KEY', :merchant_type_id => 12}) popshops.merchant_types popshops.networks popshops.deal_search(:query => {:catalog_key => 'CATALOG_KEY', :keywords => 'books'}) popshops.deal_types
You can pass any valid option from the API documentation (see popshops.com/faq/affiliate-xml-api-reference/) inside of the query hash as presented above.
Results will be returned using Hashie (github.com/intridea/hashie) so that you can navigate through the api results in a bit more ruby-esque way.
MIT license - see LICENSE for more details.