Skip to content

drKreso/kiss_amazon_mws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kiss Amazon-MWS

Update prices and quantity on Amazon via Amazon Marketplace Web Service, without ever thinking about hexdigest and signature.

Installation

Add this line to your application's Gemfile:

gem 'kiss_amazon_mws'

Usage

Put your secrets in config

If you don't have any secretes you might wanna sign up here.

mws_config = {
  aws_access_key_id: "AKIAI4********",
  secret_access_key: "ZNC+tV/****aZATR7cDW5+*********9FLdLMDQM",
  seller_id:         "A1XT*******MDM",
  marketplace_id:    "ATVP*******ER",
  amazon_url:        "mws.amazonservices.com"
}

Format collection with this attributes: [sku, price, quantity]

data = [
          ['700000005', 10.15, 1],
          ['700000006', 15.65, 6],
          ['700000007', 14.12, 3]
       ]

If you want to change just prices, leave out the quantity:

data = [
          ['700000005', 10.15],
          ['700000006', 15.65],
          ['700000007', 14.12]
       ]

Send to Amazon MWS

response = KissMWS.send_feed(data, mws_config)

About

KISS Amazon Market Web Service

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages