Class: Peddler::Client
- Inherits:
-
Object
- Object
- Peddler::Client
- Extended by:
- Forwardable
- Includes:
- Jeff
- Defined in:
- lib/peddler/client.rb
Overview
An abstract client
Subclass this to implement an MWS API section.
Direct Known Subclasses
MWS::EasyShip::Client, MWS::Feeds::Client, MWS::Finances::Client, MWS::FulfillmentInboundShipment::Client, MWS::FulfillmentInventory::Client, MWS::FulfillmentOutboundShipment::Client, MWS::MerchantFulfillment::Client, MWS::Orders::Client, MWS::Products::Client, MWS::Recommendations::Client, MWS::Reports::Client, MWS::Sellers::Client, MWS::ShipmentInvoicing::Client, MWS::Subscriptions::Client
Instance Attribute Summary collapse
-
#auth_token ⇒ String
The MWS Auth Token for a seller’s account.
-
#body ⇒ String
The body of the HTTP request.
-
#marketplace ⇒ Peddler::Marketplace
The marketplace where you signed up as application developer.
-
#merchant_id ⇒ String
The seller’s Merchant ID.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Client
constructor
Creates a new client.
Constructor Details
#initialize(opts = {}) ⇒ Client
Creates a new client
46 47 48 |
# File 'lib/peddler/client.rb', line 46 def initialize(opts = {}) opts.each { |k, v| send("#{k}=", v) } end |
Instance Attribute Details
#auth_token ⇒ String
You can omit this if you are accessing your own seller account
The MWS Auth Token for a seller’s account
53 54 55 |
# File 'lib/peddler/client.rb', line 53 def auth_token @auth_token end |
#body ⇒ String
The body of the HTTP request
78 79 80 |
# File 'lib/peddler/client.rb', line 78 def body @body end |
#marketplace ⇒ Peddler::Marketplace
You can pass the two-letter country code of the marketplace as shorthand when setting
The marketplace where you signed up as application developer
64 65 66 |
# File 'lib/peddler/client.rb', line 64 def marketplace @marketplace end |
#merchant_id ⇒ String
Amazon also refers to this as Seller ID or Merchant Token
The seller’s Merchant ID
58 59 60 |
# File 'lib/peddler/client.rb', line 58 def merchant_id @merchant_id end |