Project

popshops

0.01
No commit activity in last 3 years
No release in over 3 years
The popshops gem provides convenient methods to access all of the popshops.com API features. It uses hashie to return results that can be used in a more ruby-esque manner than with a plain hash.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.1.8
>= 0.4.3
 Project Readme

popshops¶ ↑

Ruby gem for accessing the popshops API (www.popshops.com)

install¶ ↑

gem install popshops

example¶ ↑

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

notes¶ ↑

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.

license¶ ↑

MIT license - see LICENSE for more details.