|
xxx
Utility Belt:
AmazonASINSearch
by Charles Carroll
"Utility Belt" can grab the same XML
one grabs from Amazon webservices. Here is an example of a lite call.
filename=/experiments/utilitybelt/vercurrent/ubdemo_amazon_asinsearch_lite.aspx
<%@ debug="true"%>
<%@ Assembly src="utilitybelt.vb" %>
<script language="VB" runat="server">
dim ub1 as new LearnAsp.UtilityBelt()
Sub Page_Load(S As Object, E As EventArgs)
UB1.oPTIONS("debug=on,supertrace=on")
DIM ht1 as new hashtable
ht1.add("asin","B00005YX8N")
ht1.add("type","lite")
litAmazon.text=server.htmlencode(ub1.wsAmazonAsinSearch(ht1))
End Sub
</script>
<html><head>
<title>Utilty Belt Demo</title>
</head>
<body bgcolor="#FFFFFF">
<asp:literal id="litAmazon" EnableviewState="false" runat="server" />
<form runat="server">
</form>
</body></html>
Here is an example of a heavy call..
filename=/experiments/utilitybelt/vercurrent/ubdemo_amazon_asinsearch_heavy.aspx
<%@ Assembly src="utilitybelt.vb" %>
<script language="VB" runat="server">
dim ub1 as new LearnAsp.UtilityBelt()
Sub Page_Load(S As Object, E As EventArgs)
ub1.plcException=plcErr
ub1.options("debug-on")
DIM ht1 as new hashtable
ht1.add("asin","B00005YX8N")
ht1.add("type","heavy")
litAmazon.text=server.htmlencode(ub1.wsAmazonAsinSearch(ht1))
End Sub
</script>
<html><head>
<title></title>
</head>
<body bgcolor="#FFFFFF">
<asp:placeholder id="plcErr" runat="server"/>
<asp:literal id="litAmazon" EnableviewState="false" runat="server" />
<form runat="server">
</form>
</body></html>
|