Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mattmueller/Popshops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Ruby gem for accessing the popshops API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages