AddParameter Method
Adds a parameter to the query string.
Syntax
int AddParameter(char* lpszParamName, char* lpszParamValue);
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"
Debug.Print(AmazonRequest1.XText)