AmazonのProduct Advertising API署名付きURL作成

Amazonで公開されているサンプルに含まれているSignedRequestHelperクラスを利用すると、Product Advertising APIの署名付きURLを取得できます。

string awsAccessKeyID = "取得したAccess Key ID";
string awsSecretKey = "取得したSecret Access Key";
string destination = "ecs.amazonaws.jp";

SignedRequestHelper helper = new SignedRequestHelper(
    awsAccessKeyID, awsSecretKey, destination);

Dictionary<string, string> param = new Dictionary<string, string>();
param["service"] = "AWSECommerceService";
param["Version"] = "2009-03-31";
param["Operation"] = "ItemLookup";
param["IdType"] = "ISBN";
param["SearchIndex"] = "Books";
param["ResponseGroup"] = "OfferFull,SalesRank,Small,ItemAttributes";
param["Condition"] = "All";
param["ItemId"] = "9784061856981";

string url = helper.Sign(param);

関連項目