AddParameter Method
Adds a parameter to the query string.
Syntax
public void addParameter(String paramName, String paramValue);
Remarks
This method is used to add a parameter name and value to the query string to be sent to the Amazon server. You must specify parameters which are relevant to the selected operation.
For example:
AmazonRequest1.AccessKey =
"ACCESSKEY"
;
AmazonRequest1.SecretKey =
"SECRETKEY"
;
AmazonRequest1.AddParameter(
"MerchantId"
,
"All"
);
AmazonRequest1.AddParameter(
"Condition"
,
"All"
);
AmazonRequest1.AddParameter(
"Availability"
,
"Available"
);
AmazonRequest1.AddParameter(
"SearchIndex"
,
"Apparel"
);
AmazonRequest1.AddParameter(
"Keywords"
,
"Shirt"
);
AmazonRequest1.AddParameter(
"Operation"
,
"ItemSearch"
);
AmazonRequest1.AddParameter(
"Service"
,
"AWSECommerceService"
);
AmazonRequest1.APIVersion =
"2009-01-01"
;
AmazonRequest1.SubmitTo(
"http://ecs.amazonaws.com/onca/xml"
);
AmazonRequest1.XPath =
"/ItemSearchResponse/Items/Item[1]/ASIN"
;
Console.WriteLine(AmazonRequest1.XText);