Sha256: 3ef4a5ca1dd93b98d6234f3c3597a455a75cf7b8405797b68bd7aa150732ee5e

Contents?: true

Size: 1011 Bytes

Versions: 1

Compression:

Stored size: 1011 Bytes

Contents

require File.join(File.dirname(__FILE__), 'test_helper')
require 'yaml'

class FeedSubmissionTest < Test::Unit::TestCase
  def setup
    config = YAML.load_file( File.join(File.dirname(__FILE__), '../lib/amazon/mws.yml') )
    
    AWS::MWS::Base.establish_connection!(
      config['production']
    )
  end
  
  def test_get_feed_submission_list
    # Amazon::MWS::API.submit_feed(:product_data, :product, @product)
    # response = Amazon::MWS::API.get_feed_submission_list
    
    #response = Amazon::MWS::API.request_report(:flat_file_orders)

    #report_id = response["RequestReportResponse"]["RequestReportResult"]["ReportRequestInfo"]["ReportRequestId"]


    response = Amazon::MWS::API.get_report_list
    
    report_id = response["GetReportListResult"]["ReportInfo"]["ReportId"]
    
    response = Amazon::MWS::API.get_report(report_id)    
    #response = Amazon::MWS::API.get_report_request_list
    
    #response = Amazon::MWS::API.get_report_request_count
    puts response.inspect
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amazon-mws-0.1.0 test/feed_submission_test.rb