public HomeController()
 {
     sellerId       = ConfigurationManager.AppSettings["SellerId"];
     marketplaceID  = ConfigurationManager.AppSettings["MarketplaceID"];
     accessKeyID    = ConfigurationManager.AppSettings["AccessKeyID"];
     secretKey      = ConfigurationManager.AppSettings["SecretKey"];
     serviceURL     = ConfigurationManager.AppSettings["ServiceURL"];
     _productConfig = new MarketplaceWebServiceProductsConfig {
         ServiceURL = serviceURL
     };
     _productClient = new MarketplaceWebServiceProductsClient("MWS", "1.0", accessKeyID, secretKey, _productConfig);
 }
 protected override void SetupAccountSettings()
 {
     Account = AccountEnum.AmzJk529;
     _client = new MarketplaceWebServiceProductsClient(
             AppName,
             AppVersion,
             AccountSettingsConfigSection.Rst_accessKey.Value,
             AccountSettingsConfigSection.Rst_secretKey.Value,
             new MarketplaceWebServiceProductsConfig { ServiceURL = AmzServiceUrl });
     _sellerId = AccountSettingsConfigSection.Rst_sellerId.Value;
     _marketplaceId = new List<string> { AccountSettingsConfigSection.Rst_marketplaceId.Value };
 }
示例#3
0
 public Program(MarketplaceWebServiceProducts.MarketplaceWebServiceProducts client)
 {
     this.client = client;
 }