Amazon Product Advertising API for Asp.net & C# -
i want fetch books using amazon product advertising api asp.net , c#. guides , codes confusing don't give single method search books. there single stub can used call service , fetch books based on isbn. thanks
there's sample solution can download. http://aws.amazon.com/code/2480?_encoding=utf8&queryarg=searchquery&x=0&fromsearch=1&y=0&searchpath=code&searchquery=advertising
they give class called signedrequesthelper, make call this:
public static void main() { signedrequesthelper helper = new signedrequesthelper(my_aws_access_key_id, my_aws_secret_key, destination); /* * helper supports 2 forms of requests - dictionary form , query string form. */ string requesturl; string title; /* * here itemlookup example request stored dictionary. */ idictionary<string, string> r1 = new dictionary<string, string>(); r1["service"] = "awsecommerceservice"; r1["version"] = "2009-03-31"; r1["operation"] = "itemlookup"; r1["itemid"] = item_id; r1["responsegroup"] = "small"; /* random params testing */ r1["anurl"] = "http://www.amazon.com/books"; r1["anemailaddress"] = "foobar@nowhere.com"; r1["aunicodestring"] = "αβγδεٵٶٷٸٹٺチャーハン叉焼"; r1["latin1chars"] = "ĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJij"; requesturl = helper.sign(r1); title = fetchtitle(requesturl); system.console.writeline("method 1: itemlookup dictionary form."); system.console.writeline("title \"" + title + "\""); system.console.writeline(); }
you need use itemlookup (like example) set idtype isbn. set itemid actual isbn. here details on itemlookup:
docs.amazonwebservices.com/awsecommerceservice/latest/dg/index.html?itemlookup.html
Comments
Post a Comment