lib/mws/recommendations/client.rb in peddler-1.2.0 vs lib/mws/recommendations/client.rb in peddler-1.3.0
- old
+ new
@@ -5,19 +5,19 @@
# 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.
class Client < ::Peddler::Client
- version "2013-04-01"
+ version '2013-04-01'
path "/Recommendations/#{version}"
# Checks whether there are active recommendations for each category for
# the given marketplace, and if there are, returns the time when
# recommendations were last updated for each category
#
# @see http://docs.developer.amazonservices.com/en_US/recommendations/Recommendations_GetLastUpdatedTimeForRecommendations.html
- # @param marketplace_id [String]
+ # @param [String] marketplace_id
# @return [Peddler::XMLParser]
def get_last_updated_time_for_recommendations(marketplace_id = primary_marketplace_id)
operation('GetLastUpdatedTimeForRecommendations')
.add('MarketplaceId' => marketplace_id)
@@ -27,11 +27,11 @@
# Lists active recommendations for a specific category or for all
# categories for a specific marketplace
#
# @see http://docs.developer.amazonservices.com/en_US/recommendations/Recommendations_ListRecommendations.html
# @overload list_recommendations(opts = { marketplace_id: primary_marketplace_id })
- # @param opts [Hash]
+ # @param [Hash] opts
# @option opts [String] :marketplace_id
# @option opts [String] :recommendation_category
# @option opts [Array<Struct, Hash>] :category_query_list
# @return [Peddler::XMLParser]
def list_recommendations(opts = {})
@@ -48,10 +48,10 @@
end
# Lists the next page of active recommendations
#
# @see http://docs.developer.amazonservices.com/en_US/recommendations/Recommendations_ListRecommendationsByNextToken.html
- # @param next_token [String]
+ # @param [String] next_token
# @return [Peddler::XMLParser]
def list_recommendations_by_next_token(next_token)
operation('ListRecommendationsByNextToken')
.add('NextToken' => next_token)