Skip to content

12spokes/Popshops

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Ruby gem for accessing the popshops API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%