<commit_before>require 'peddler/client'

module MWS
  module Sellers
    # The Sellers API lets sellers retrieve information about their seller
    # account, such as the marketplaces they participate in.
    class Client < ::Peddler::Client
      version "2011-07-01"
      path "/Sellers/#{version}"

      # Lists the marketplaces the seller participates in
      #
      # @see http://docs.developer.amazonservices.com/en_US/sellers/Sellers_ListMarketplaceParticipations.html
      # @return [Peddler::XMLParser]
      def list_marketplace_participations
        operation('ListMarketplaceParticipations')
        run
      end

      # Lists the next page of marketplaces the seller participates in
      #
      # @see http://docs.developer.amazonservices.com/en_US/sellers/Sellers_ListMarketplaceParticipationsByNextToken.html
      # @param next_token [String]
      # @return [Peddler::XMLParser]
      def list_marketplace_participations_by_next_token(next_token)
        operation('ListMarketplaceParticipationsByNextToken')
          .add('NextToken' => next_token)

        run
      end

      # Gets the service status of the API
      #
      # @see http://docs.developer.amazonservices.com/en_US/sellers/MWS_GetServiceStatus.html<commit_msg>Fix URL<commit_after>require 'peddler/client'

module MWS
  module Sellers
    # The Sellers API lets sellers retrieve information about their seller
    # account, such as the marketplaces they participate in.
    class Client < ::Peddler::Client
      version "2011-07-01"
      path "/Sellers/#{version}"

      # Lists the marketplaces the seller participates in
      #
      # @see http://docs.developer.amazonservices.com/en_US/sellers/Sellers_ListMarketplaceParticipations.html
      # @return [Peddler::XMLParser]
      def list_marketplace_participations
        operation('ListMarketplaceParticipations')
        run
      end

      # Lists the next page of marketplaces the seller participates in
      #
      # @see http://docs.developer.amazonservices.com/en_US/sellers/Sellers_ListMarketplaceParticipationsByNextToken.html
      # @param next_token [String]
      # @return [Peddler::XMLParser]
      def list_marketplace_participations_by_next_token(next_token)
        operation('ListMarketplaceParticipationsByNextToken')
          .add('NextToken' => next_token)

        run
      end

      # Gets the service status of the API
      #
      # @see http://docs.developer.amazonservices.com/en_US/sellers/Sellers_GetServiceStatus.html
{'fraction_non_alphanumeric': 0.08035003977724742, 'fraction_numerical': 0.006364359586316627, 'mean_word_length': 3.205685618729097, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5597921', 'n_tokens_mistral': 758, 'n_tokens_neox': 707, 'n_words': 160}