Class: MWS::Sellers::Client

Inherits:
Peddler::Client show all
Defined in:
lib/mws/sellers/client.rb

Overview

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

Instance Attribute Summary

Attributes inherited from Peddler::Client

#auth_token, #body, #marketplace, #merchant_id

Instance Method Summary collapse

Methods inherited from Peddler::Client

#initialize

Constructor Details

This class inherits a constructor from Peddler::Client

Instance Method Details

#get_service_statusPeddler::XMLParser

Gets the service status of the API



38
39
40
41
# File 'lib/mws/sellers/client.rb', line 38

def get_service_status
  operation('GetServiceStatus')
  run
end

#list_marketplace_participationsPeddler::XMLParser

Lists the marketplaces the seller participates in



17
18
19
20
# File 'lib/mws/sellers/client.rb', line 17

def list_marketplace_participations
  operation('ListMarketplaceParticipations')
  run
end

#list_marketplace_participations_by_next_token(next_token) ⇒ Peddler::XMLParser

Lists the next page of marketplaces the seller participates in

Parameters:

  • next_token (String)

Returns:

  • (Peddler::XMLParser)

See Also:



27
28
29
30
31
32
# File 'lib/mws/sellers/client.rb', line 27

def list_marketplace_participations_by_next_token(next_token)
  operation('ListMarketplaceParticipationsByNextToken')
    .add('NextToken' => next_token)

  run
end