Skip to content

Flowspace-Team/mws-feeds

Repository files navigation

Build Status Gem Version

MWS Feeds

MWS Feeds is a Ruby interface to the Amazon Marketplace Web Service (MWS) Feeds API. With the MWS Feeds API, you can build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.

(To use Amazon MWS, you must have an Amazon MWS developer account.)

Usage

Create a client:

require "mws-feeds"
client = MWS.feeds(marketplace: "ATVPDKIKX0DER", merchant_id: "123")

Set up credentials when instantiating or with environment variables.

Feed Submission Count

Get the count of feeds submitted in the past 90 days:

response = client.get_feed_submission_count
submission_count_data = response.parse
puts submission_count_data.count # => 1