CliffDR / peddler

A Ruby interface to the Amazon Marketplace Web Service (MWS) APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Peddler

Build Status

Peddler

Peddler is a full-featured Ruby interface to the Amazon Marketplace Web Service (MWS) APIs.

Configuration

Require the library:

require 'peddler'

Or require an individual API:

require 'mws/orders'

Instantiate a client to a particular API with the ISO 3166-1 two-letter country code of the marketplace and your seller credentials:

client = MWS::Orders::Client.new('GB', 'key', 'secret', 'merchant_id')

You may also set the credentials as environment variables in your shell:

export AWS_ACCESS_KEY_ID=key
export AWS_SECRET_ACCESS_KEY=secret
export MERCHANT_ID=merchant_id

Then, instantiate with the country code:

client = MWS::Orders::Client.new('US')

When developing, you may set the EXCON_DEBUG environment variable to debug the HTTP exchange.

Usage

Feeds

The Feeds API lets you upload inventory and order data to Amazon. You can also use this API to get information about the processing of feeds.

Read the client API methods.

Fulfillment Inbound Shipment

With the Fulfillment Inbound Shipment API, you can create and update inbound shipments of inventory in the Amazon Fulfillment Network. You can also request lists of inbound shipments or inbound shipment items based on criteria that you specify.

While this API is not implemented yet, you may still use the raw client like so:

client = MWS::FulfillmentInboundShipment::Client.new('GB')

Pull requests are welcome!

Fulfillment Inventory

The Fulfillment Inventory API lets you see what is available in your inventory. It's a real-time reporting mechanism that returns your current or recently-changed inventory supply in the Amazon fulfillment network.

While this API is not implemented yet, you may still use the raw client like so:

client = MWS::FulfillmentInventory::Client.new('GB')

Pull requests are welcome!

Fulfillment Outbound Shipment

The Fulfillment Outbound Shipment API is designed to help you integrate Fulfillment by Amazon with any payment processing application or inventory management system currently in use.

While this API is not implemented yet, you may still use the raw client like so:

client = MWS::FulfillmentOutboundShipment::Client.new('GB')

Pull requests are welcome!

Off Amazon Payments

The Off-Amazon Payments API helps you to process payments for purchases made by buyers using Amazon Payments on your website. This API enables you to programmatically retrieve shipping and payment information provided by the buyer from their Amazon account and to authorize, capture, and refund funds to enable a variety of payments scenarios.

While this API is not implemented yet, you may still use the raw client like so:

client = MWS::OffAmazonPayments::Client.new('GB')

Pull requests are welcome!

Orders

The Orders API allows you to list orders created or updated during a time frame you specify or retrieve information about specific orders.

Read the client API methods.

Products

The Products API helps you get information to match your products to existing product listings on Amazon Marketplace websites and to make sourcing and pricing decisions for listing those products on Amazon Marketplace websites.

While this API is not implemented yet, you may still use the raw client like so:

client = MWS::Products::Client.new('GB')

Pull requests are welcome!

Recommendations

The Recommendations API enables you to programmatically retrieve Amazon Selling Coach recommendations by recommendation category. A recommendation is an actionable, timely, and personalized opportunity to increase your sales and performance.

While this API is not implemented yet, you may still use the raw client like so:

client = MWS::Recommendations::Client.new('GB')

Pull requests are welcome!

Reports

The Reports API lets you request reports about your inventory and orders.

Read the client API methods.

Sellers

The Sellers API lets sellers retrieve information about their seller account, such as the marketplaces they participate in.

Read the client API methods.

Subscriptions

The Subscriptions API enables you to subscribe to receive notifications that are relevant to your business with Amazon. With the operations in the Subscriptions API section, you can register to receive important information from Amazon without having to poll the Amazon MWS service. Instead, the information is sent directly to you when an event occurs to which you are subscribed.

While this API is not implemented yet, you may still use the raw client like so:

client = MWS::Subscriptions::Client.new('GB')

Pull requests are welcome!

About

A Ruby interface to the Amazon Marketplace Web Service (MWS) APIs

License:MIT License