public GetMatchingProduct(string accessKeyId, string secretAccessKey, string merchantId, string marketplaceId, string applicationName, string applicationVersion) { config = new MarketplaceWebServiceProductsConfig(); config.ServiceURL = "https://mws.amazonservices.com/Products/2011-10-01"; GetMatchingProduct.merchantId = merchantId; GetMatchingProduct.marketplaceId = marketplaceId; service = new MarketplaceWebServiceProductsClient( applicationName, applicationVersion, accessKeyId, secretAccessKey, config); }
/// <summary> /// Constructs MarketplaceWebServiceProductsClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="applicationName">Your application's name, e.g. "MyMWSApp"</param> /// <param name="applicationVersion">Your application's version, e.g. "1.0"</param> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="config">configuration</param> public MarketplaceWebServiceProductsClient( String applicationName, String applicationVersion, String awsAccessKeyId, String awsSecretAccessKey, MarketplaceWebServiceProductsConfig config) { this.awsAccessKeyId = awsAccessKeyId; this.awsSecretAccessKey = awsSecretAccessKey; this.config = config; ServicePointManager.Expect100Continue = false; ServicePointManager.UseNagleAlgorithm = false; config.SetUserAgent(applicationName, applicationVersion); }