Sha256: 601211675312e55e1ccbcd0174ad6824bc06ea87117c364177bed20c6d2d8eab
Contents?: true
Size: 1009 Bytes
Versions: 1
Compression:
Stored size: 1009 Bytes
Contents
module MWS module API # Feeds class Feeds < Base XSD_PATH = File.join(File.dirname(__FILE__), 'feeds', 'xsd') ACTIONS = [:get_feed_submission_list, :get_feed_submission_list_by_next_token, :get_feed_submission_count, :cancel_feed_submissions, :get_feed_submission_result] def initialize(connection) @uri = '/' @version = '2009-01-01' @verb = :post super end def submit_feed(params = {}) xml_envelope = Envelope.new(params.merge!(merchant_id: connection.seller_id)) params = params.except(:merchant_id, :message_type, :message, :messages, :skip_schema_validation) call(:submit_feed, params.merge!( request_params: { format: :xml, headers: { 'Content-MD5' => xml_envelope.md5 }, body: xml_envelope.to_s } )) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mws_rb-0.0.6 | lib/mws/api/feeds.rb |