<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Services &#38; Application Store Blog &#187; Widget production</title>
	<atom:link href="http://blog.zanox.com/en/webservices/category/widget-production/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zanox.com/en/webservices</link>
	<description>Build Revenue From Your Creativity</description>
	<lastBuildDate>Wed, 03 Mar 2010 13:45:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Facing the truth</title>
		<link>http://blog.zanox.com/en/webservices/2009/08/07/facing-the-truth/</link>
		<comments>http://blog.zanox.com/en/webservices/2009/08/07/facing-the-truth/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 13:52:23 +0000</pubDate>
		<dc:creator>Sebastian Wallroth</dc:creator>
				<category><![CDATA[Application Store]]></category>
		<category><![CDATA[Widget production]]></category>

		<guid isPermaLink="false">http://blog.zanox.com/en/webservices/?p=892</guid>
		<description><![CDATA[	The body mass index (BMI), or Quetelet index, is a statistical measurement which compares a person&#8217;s weight and height. The Sweden based DreamBuilders team developed the BMI Calculator Widget and put it to the zanox Application Store. Now everyone can calculate the need of using the stairways instead of the elevator or studies the product [...]]]></description>
			<content:encoded><![CDATA[	<p><img src="http://blog.zanox.com/en/webservices/wp-content/uploads/2009/08/2009-08-07_1541101.jpg" alt="BMI Calculator Widget" title="BMI Calculator Widget" width="278" height="216" class="alignright size-full wp-image-894" />The body mass index (BMI), or Quetelet index, is a statistical measurement which compares a person&#8217;s weight and height. The Sweden based <a href="http://www.dreambuilders.se/zanox-applications/" target="_blank">DreamBuilders</a> team developed the <a href="https://apps.zanox.com/web/guest/home?productID=11252"><span class="caps">BMI </span>Calculator Widget</a> and put it to the zanox Application Store. Now everyone can calculate the need of using the stairways instead of the elevator or studies the product recommendations provided by the widget along with the finding. (See my on the screenshot; uh &#8211; oh.)</p>

	<p>The widget is available in English, Swedish, and German localisation.</p>
 ]]></content:encoded>
			<wfw:commentRss>http://blog.zanox.com/en/webservices/2009/08/07/facing-the-truth/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Shopotainment Publisher Widget</title>
		<link>http://blog.zanox.com/en/webservices/2009/07/09/shopotainment-publisher-widget/</link>
		<comments>http://blog.zanox.com/en/webservices/2009/07/09/shopotainment-publisher-widget/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 13:48:19 +0000</pubDate>
		<dc:creator>Sebastian Wallroth</dc:creator>
				<category><![CDATA[Application Store Contest]]></category>
		<category><![CDATA[Widget production]]></category>

		<guid isPermaLink="false">http://blog.zanox.com/en/webservices/?p=839</guid>
		<description><![CDATA[	Shopotainment is a service enabling communication and interaction with and about products through social networks, widgets, RSS-feeds, or the shopotainment portal.

	The systems suggests interesting products for recommendation to friends by learning the users preferences. The emerging product world (I have, I want, I bye) can be provided as feed to friends to inspire them.

	If the [...]]]></description>
			<content:encoded><![CDATA[	<p><a href="https://apps.zanox.com/web/guest/home?productID=6277"><img src="http://blog.zanox.com/en/webservices/wp-content/uploads/2009/07/shopotainment-widget-001.jpg" alt="Shopotainment Publisher Widget" title="Shopotainment Publisher Widget" width="126" height="249" class="alignright size-full wp-image-841" /></a><a href="http://www.shopotainment.de">Shopotainment</a> is a service enabling communication and interaction with and about products through social networks, widgets, <span class="caps">RSS</span>-feeds, or the shopotainment portal.</p>

	<p>The systems suggests interesting products for recommendation to friends by learning the users preferences. The emerging product world (I have, I want, I bye) can be provided as feed to friends to inspire them.</p>

	<p>If the product inspiration fits the liking of the friend, he can buy the product via a direct link (price comparison inclusive) and add the product to his own product world.</p>

	<p><a href="https://apps.zanox.com/web/guest/home?productID=6277">Shopotainment provides a Widget</a> via tha zanox Application Store that enriches the product information with links to its users and fans. Website users can use the interaction buttons to express themselves to show whether they have the product already or they want it, and if they like it or not.</p>
 ]]></content:encoded>
			<wfw:commentRss>http://blog.zanox.com/en/webservices/2009/07/09/shopotainment-publisher-widget/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>zanox Web Services Workshop 1.0</title>
		<link>http://blog.zanox.com/en/webservices/2009/04/15/zanox-web-services-workshop-10/</link>
		<comments>http://blog.zanox.com/en/webservices/2009/04/15/zanox-web-services-workshop-10/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 20:40:29 +0000</pubDate>
		<dc:creator>Sebastian Wallroth</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Widget production]]></category>

		<guid isPermaLink="false">http://blog.zanox.com/en/webservices/?p=711</guid>
		<description><![CDATA[	Welcome to the workshop. I want to explore with you the possibilities zanox Web Services offers you.

	First let&#8217;s have a look at this plain product search example taken from our wiki. It consists of a HTML file containing JavaScript code.

	
&#60;!DOCTYPE HTML PUBLIC &#34;-//W3C//DTD HTML 4.01 Transitional//EN&#34; &#34;http://www.w3.org/TR/html4/loose.dtd&#34;&#62;
&#60;html&#62;
 &#60;head&#62;
  &#60;title&#62;zanox Web Services - Contextual Product [...]]]></description>
			<content:encoded><![CDATA[	<p>Welcome to the workshop. I want to explore with you the possibilities zanox Web Services offers you.</p>

	<p>First let&#8217;s have a look at this plain product search example <a href="http://wiki.zanox.com/en/JavaScript_Contextual_Product_Search" target="_blank">taken from our wiki</a>. It consists of a <span class="caps">HTML</span> file containing JavaScript code.</p>

	<p>
<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;
&lt;html&gt;
 &lt;head&gt;
  &lt;title&gt;zanox Web Services - Contextual Product Search&lt;/title&gt;
 &lt;/head&gt;
 &lt;body&gt;
  &lt;h1&gt;zanox Web Services - Contextual Product Search&lt;/h1&gt;
  &lt;div id=&quot;zxAdList&quot;&gt;&lt;/div&gt; &lt;!-- // DIV HTML element to be filled with product information --&gt;
  &lt;script type=&quot;text/javascript&quot;&gt;
// function to add scripts to html header 
   function addScript(url) { 
    var script = document.createElement('script');
// preventing caching of the Web Service call by adding timestamp
    script.src = url + '&amp;t=' + new Date().getMinutes(); 
    script.type = 'text/javascript';
    document.getElementsByTagName('head')[0].appendChild(script);
   }
&nbsp;
// function for zanox product search  
// for detailed parameter description see 
// http://wiki.zanox.com/en/Products_Resource#GET:_Contextual_product_search
   function productSearch(version, applicationid, adspace, region, programs, minPrice, maxPrice, category, page, items, q, callback) {
    var url = 'http://api.zanox.com/json/' + version + '/products?applicationid=' + applicationid;
// adspace=null returns tracking links for all adspaces 
    if (adspace) url += '&amp;adspace=' + adspace;
// sales region; e.g. de, fr, it; null means &quot;all countries&quot;
    if (region) url += '&amp;region=' + region;
// program ID 
    if (programs) url += '&amp;programs=' + programs;
// zanox product category ID; null means &quot;all categories&quot;  
    if (category) url += '&amp;category=' + category;
// search result is paged 
    if (page) url += '&amp;page=' + page;
// number of products per page 
    if (items) url += '&amp;items=' + items;
// minimum price 
    if (minPrice) url += '&amp;minPrice=' + minPrice;
// maximum price 
    if (maxPrice) url += '&amp;maxPrice=' + maxPrice;
// handler for the search result 
    if (callback) url += '&amp;callback=' + callback;
// search term 
    if (q) url += '&amp;q=' + q;
// adding script to html header 
    addScript(url);
   }
&nbsp;
// function for computing of the search result 
   function handler(data) {
    if (data.productsResult) {
     var productItems = data.productsResult.productItem;
// accessing the existing div element with the ID &quot;zxAdList&quot; 
     var theList = document.getElementById('theList');
// looping through the product results 
     for (var i = 0; i &lt; productItems.length; i++) {
      var productItem = productItems[i];
      var link = '';
      if (productItem.url.adspace instanceof Array) {
// selecting tracking link related to the first adspace
      link = productItem.url.adspace[0].$; 
      }
      else {
       link = productItem.url.adspace.$;
      }
// creating a list item &lt;li&gt;&lt;a href=&quot;PRODUCT LINK&quot;&gt;PRODUCT NAME at ADVERTISER only PRODUCT PRICE&lt;/a&gt;&lt;/li&gt;
      var item = document.createElement(&quot;li&quot;);
      item.innerHTML = &quot;&lt;a href='&quot; + link + &quot;'&gt;&quot; + productItem.name + &quot; at &quot; + productItem.program.$ + &quot; only &quot; + productItem.price.toFixed(2) + &quot;&amp;nbsp;&quot; + productItem.currency + &quot;&lt;/a&gt;&quot;;
// appending item to theList
      theList.appendChild(item);
     }
    }
   }
&nbsp;
// creating an unordered list &lt;ul id=&quot;theList&quot;&gt;&lt;/ul&gt; 
   var theList = document.createElement(&quot;ul&quot;);
   theList.setAttribute(&quot;id&quot;,&quot;theList&quot;);
// accessing the existing div element with the ID &quot;zxAdList&quot; 
   var zxAdList = document.getElementById('zxAdList');
// adding theList to zxAdList
   zxAdList.appendChild(theList);
&nbsp;
// performing the zanox search 
   productSearch('2009-02-01', 'BE94C4947839E8AB4D67', null, null, '660', null, null, null, 0, 5, 'red towel', 'handler');
&lt;/script&gt;
 &lt;/body&gt;
&lt;/html&gt;</pre></div></div>
</p>



	<p>You can copy this code as it is into a text file, then save the file as a.html and view it in a browser. It should look quite similar to this screenshot: <img src="http://blog.zanox.com/en/webservices/wp-content/uploads/2009/04/2009-04-15_184055.jpg" alt="Screenshot" title="screenshot" width="422" height="287" class="alignright size-full wp-image-743" /></p>

	<p>Let&#8217;s go through the code.</p>

	<p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #00bbdd;">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;html<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>zanox Web Services - Contextual Product Search<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;h1<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>zanox Web Services - Contextual Product Search<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/h1<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;zxAdList&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> <span style="color: #808080; font-style: italic;">&lt;!-- // DIV HTML element to be filled with product information --&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></pre></td></tr></table></div>
</p>



	<p>The first lines are the <span class="caps">HTML</span> part of the file. In line 7 the huge headline is created and in line 8 a <span class="caps">DIV</span> container is placed to be filled with our Web Service output.</p>

	<p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// function to add scripts to html header </span>
<span style="color: #003366; font-weight: bold;">function</span> addScript<span style="color: #009900;">&#40;</span>url<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
<span style="color: #003366; font-weight: bold;">var</span> script <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'script'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// preventing caching of the Web Service call by adding timestamp</span>
script.<span style="color: #660066;">src</span> <span style="color: #339933;">=</span> url <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&amp;t='</span> <span style="color: #339933;">+</span> <span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getMinutes</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
script.<span style="color: #660066;">type</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'text/javascript'</span><span style="color: #339933;">;</span>
document.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'head'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>script<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>
</p>



	<p>The function addScript() starting at line 11 takes a given <span class="caps">URL</span>. Then it creates in line 12 a new script in our <span class="caps">HTML</span> document like if we would add a <code>&lt;script&gt;&lt;/script&gt;</code> tag into the <span class="caps">HTML</span> code. In line 14 the parameter <code>src</code> is added to the <code>script</code> object and filled with the given <span class="caps">URL</span> like if we would extend the <code>script</code> tag to <code>&lt;script src="url"&gt;&lt;/script&gt;</code>.<br />
<blockquote>The magic part <code>+ '&#38;t=' + new Date().getMinutes()</code> adds a timestamp to the <span class="caps">URL</span>. This doesn&#8217;t influent the script but prevents caching of the Web Service request. If we would strip the magic code, we would recieve always the same products even if we would use different search terms.</blockquote><br />
In line 16 we add the script to the <span class="caps">HTML HEAD</span> section. Do you know why?<br />
<dl><dt>Wouldn&#8217;t it work also if we would include the script from within the <span class="caps">HTML BODY</span> section?</dt><br />
<dd>We have to add it to the <span class="caps">HTML HEAD</span> section, because we are calling a <span class="caps">URL</span> of another domain. The script is placed on your server and calls the zanox Web Service <span class="caps">URL</span>. If we would put the script into the <span class="caps">HTML BODY</span> this would lead to a security warning or an error. But doing it from within the <span class="caps">HTML HEAD</span> section there is no problem.</dd><br />
<dt>Why don&#8217;t we put the script into the <span class="caps">HTML HEAD</span> section manually?</dt><br />
<dd>Because we are programing a widget. Widgets are added to the <span class="caps">HTML BODY</span> section per definitionem.</dd></dl></p>

	<p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// function for zanox product search  </span>
<span style="color: #006600; font-style: italic;">// for detailed parameter description see </span>
<span style="color: #006600; font-style: italic;">// http://wiki.zanox.com/en/Products_Resource#GET:_Contextual_product_search</span>
   <span style="color: #003366; font-weight: bold;">function</span> productSearch<span style="color: #009900;">&#40;</span>version<span style="color: #339933;">,</span> applicationid<span style="color: #339933;">,</span> adspace<span style="color: #339933;">,</span> region<span style="color: #339933;">,</span> programs<span style="color: #339933;">,</span> minPrice<span style="color: #339933;">,</span> maxPrice<span style="color: #339933;">,</span> category<span style="color: #339933;">,</span> page<span style="color: #339933;">,</span> items<span style="color: #339933;">,</span> q<span style="color: #339933;">,</span> callback<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> url <span style="color: #339933;">=</span> <span style="color: #3366CC;">'http://api.zanox.com/json/'</span> <span style="color: #339933;">+</span> version <span style="color: #339933;">+</span> <span style="color: #3366CC;">'/products?applicationid='</span> <span style="color: #339933;">+</span> applicationid<span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// adspace=null returns tracking links for all adspaces </span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>adspace<span style="color: #009900;">&#41;</span> url <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&amp;adspace='</span> <span style="color: #339933;">+</span> adspace<span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// sales region; e.g. de, fr, it; null means &quot;all countries&quot;</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>region<span style="color: #009900;">&#41;</span> url <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&amp;region='</span> <span style="color: #339933;">+</span> region<span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// program ID </span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>programs<span style="color: #009900;">&#41;</span> url <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&amp;programs='</span> <span style="color: #339933;">+</span> programs<span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// zanox product category ID; null means &quot;all categories&quot;  </span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>category<span style="color: #009900;">&#41;</span> url <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&amp;category='</span> <span style="color: #339933;">+</span> category<span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// search result is paged </span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>page<span style="color: #009900;">&#41;</span> url <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&amp;page='</span> <span style="color: #339933;">+</span> page<span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// number of products per page </span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>items<span style="color: #009900;">&#41;</span> url <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&amp;items='</span> <span style="color: #339933;">+</span> items<span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// minimum price </span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>minPrice<span style="color: #009900;">&#41;</span> url <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&amp;minPrice='</span> <span style="color: #339933;">+</span> minPrice<span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// maximum price </span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>maxPrice<span style="color: #009900;">&#41;</span> url <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&amp;maxPrice='</span> <span style="color: #339933;">+</span> maxPrice<span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// handler for the search result </span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>callback<span style="color: #009900;">&#41;</span> url <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&amp;callback='</span> <span style="color: #339933;">+</span> callback<span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// search term </span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>q<span style="color: #009900;">&#41;</span> url <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&amp;q='</span> <span style="color: #339933;">+</span> q<span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// adding script to html header </span>
    addScript<span style="color: #009900;">&#40;</span>url<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>
</p>



	<p>The function productSearch() performes the zanox product search. Basically we are building a <span class="caps">URL</span> calling the product search service and handing over several parameters. Please refer to <a href="http://wiki.zanox.com/en/Products_Resource#GET:_Contextual_product_search">the zanox wiki</a> to see the complete documentation. In line 22 we are starting to build the <span class="caps">URL</span> with <code>http://api.zanox.com/json/</code>, adding the folder of the current <code>version</code>, the method <code>product</code>, and the application ID as the first parameter.<br />
<dl><dt>Where do I get my application ID?</dt><br />
<dd>Go to <a href="http://www.zanox.com" target="_blank">http://www.zanox.com</a>. Login using the top right form. Activate the tab <em>Web Services (BETA)</em> and grab the application ID from the table or create a new one using the button.</dd></dl></p>
	<p>The next parameters are filters for the search. Then in line 40 the handler for the result is defined. Finally in line 44 the prior function addScript() is called to move the Web Services call into the <span class="caps">HTML HEAD</span> section which leads to an instant execution of it.</p>

	<p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// function for computing of the search result </span>
   <span style="color: #003366; font-weight: bold;">function</span> handler<span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>data.<span style="color: #660066;">productsResult</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     <span style="color: #003366; font-weight: bold;">var</span> productItems <span style="color: #339933;">=</span> data.<span style="color: #660066;">productsResult</span>.<span style="color: #660066;">productItem</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// accessing the existing div element with the ID &quot;zxAdList&quot; </span>
     <span style="color: #003366; font-weight: bold;">var</span> theList <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'theList'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// looping through the product results </span>
     <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> productItems.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #003366; font-weight: bold;">var</span> productItem <span style="color: #339933;">=</span> productItems<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
      <span style="color: #003366; font-weight: bold;">var</span> link <span style="color: #339933;">=</span> <span style="color: #3366CC;">''</span><span style="color: #339933;">;</span>
      <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>productItem.<span style="color: #660066;">url</span>.<span style="color: #660066;">adspace</span> <span style="color: #000066; font-weight: bold;">instanceof</span> Array<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #006600; font-style: italic;">// selecting tracking link related to the first adspace</span>
      link <span style="color: #339933;">=</span> productItem.<span style="color: #660066;">url</span>.<span style="color: #660066;">adspace</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.$<span style="color: #339933;">;</span> 
      <span style="color: #009900;">&#125;</span>
      <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
       link <span style="color: #339933;">=</span> productItem.<span style="color: #660066;">url</span>.<span style="color: #660066;">adspace</span>.$<span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
<span style="color: #006600; font-style: italic;">// creating a list item &lt;li&gt;&lt;a href=&quot;PRODUCT LINK&quot;&gt;PRODUCT NAME at ADVERTISER only PRODUCT PRICE&lt;/a&gt;&lt;/li&gt;</span>
      <span style="color: #003366; font-weight: bold;">var</span> <span style="color: #000066; font-weight: bold;">item</span> <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;li&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000066; font-weight: bold;">item</span>.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;&lt;a href='&quot;</span> <span style="color: #339933;">+</span> link <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;'&gt;&quot;</span> <span style="color: #339933;">+</span> productItem.<span style="color: #000066;">name</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; at &quot;</span> <span style="color: #339933;">+</span> productItem.<span style="color: #660066;">program</span>.$ <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; only &quot;</span> <span style="color: #339933;">+</span> productItem.<span style="color: #660066;">price</span>.<span style="color: #660066;">toFixed</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;&amp;nbsp;&quot;</span> <span style="color: #339933;">+</span> productItem.<span style="color: #660066;">currency</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;&lt;/a&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// appending item to theList</span>
      theList.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
   <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>
</p>



	<p>The function handler(data) catches the result delivered in the container <code>data.productsResult</code>. The products are stored in the array <code>data.productsResult.productItem</code> In line 51 we are creating a handler for the list where we want to put the single product items in. Beginning in line 53 we are looping through the products.<br />
For every product we have the following data. (This is the example from the <a href="http://wiki.zanox.com/en/Products_Resource#Example_Response">zanox Web Services documentation in our wiki</a>.)</p>

	<p>
<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span> <span style="color: #000066;">standalone</span>=<span style="color: #ff0000;">&quot;yes&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;response</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://api.zanox.com/namespace/2009-02-01/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;productsResult<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;productItem</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;76485b5f7021f7bc03b853fbf5debb53&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Example product<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;modified<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>2008-06-01T17:00:00Z<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/modified<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Description of the example product item<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;manufacturer<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Example Inc.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/manufacturer<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;program</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;333&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Example Inc. advertising program<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/program<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;currency<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>EUR<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/currency<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;price<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>39.90<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/price<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;category</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;10000&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/category<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>3817610347<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;image<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;small<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>http://www.example.com/productimage/71/BTP/4X_20425_3028.jpg<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/small<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;medium<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>http://www.example.com/productimage/71/bp/4X_20425_3028.jpg<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/medium<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;large<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>http://www.example.com/productimage/71/BM/4X_20425_3028.jpg<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/large<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/image<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;adspace</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>http://www.zanox-affiliate.de/ppc/77171C831740488ULP=[[000697]]<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/adspace<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;adspace</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>http://www.zanox-affiliate.de/ppc/77172C832740488ULP=[[000697]]<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/adspace<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;adspace</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;3&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>http://www.zanox-affiliate.de/ppc/77173C833740488ULP=[[000697]]<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/adspace<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/productItem<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/productsResult<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/response<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>
</p>



	<p>Please keep in mind that only the attributes <ul><li>productItem id</li><br />
<li>name</li><br />
<li>modified</li><br />
<li>manufacturer</li><br />
<li>program id</li><br />
<li>currency</li><br />
<li>category id</li></ul> are always available.</p>

	<p>Also the image urls are not supervised by zanox. Sometimes there are no ones. Sometimes the url format is wrong. Sometimes instead of a product image an image with a text like &#8220;No image&#8221; is delivered.</p>

	<p>The description sometime includes (bad) <span class="caps">HTML</span> code.</p>

	<p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>71
72
73
74
75
76
77
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// creating an unordered list &lt;ul id=&quot;theList&quot;&gt;&lt;/ul&gt; </span>
   <span style="color: #003366; font-weight: bold;">var</span> theList <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;ul&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   theList.<span style="color: #660066;">setAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;theList&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// accessing the existing div element with the ID &quot;zxAdList&quot; </span>
   <span style="color: #003366; font-weight: bold;">var</span> zxAdList <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'zxAdList'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// adding theList to zxAdList</span>
   zxAdList.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>theList<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>
</p>



	<p>In lines 72 to 77 we are creating a unordered list and appending it to the <span class="caps">DIV</span> container established in line 8. (This list is filled with LI items in lines 64 to 67.)</p>

	<p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>78
79
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// performing the zanox search </span>
   productSearch<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'2009-02-01'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'BE94C4947839E8AB4D67'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'660'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">5</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'red towel'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'handler'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>
</p>



	<p>In line 79 the function productSearch() is called handing over the parameters<br />
<ol></p>
	<p><li>Version &#8211; the zanox Web Services version &#8211; <code>2009-02-01</code></li><br />
<li>Application <span class="caps">ID </span>- place your application ID here; the current is mine (you <span class="caps">CAN</span> use, but it&#8217;s ME earning the money then ) &#8211; <code>BE94C4947839E8AB4D67</code></li><br />
<li>AdSpace <span class="caps">ID </span>- you can append the transactions to a dedicated advertising space of yours &#8211; <code>null</code></li><br />
<li>Region &#8211; filters the result set to products for one country here, e.g. France or Kenia &#8211; <code>null</code></li><br />
<li>Programs &#8211; filters the result set to one advertiser &#8211; <code>660</code></li><br />
<li>Minimum price &#8211; filters the result set to products mre expensive than this &#8211; <code>null</code></li><br />
<li>Maximum price &#8211; filters the result set to products cheaper than this &#8211; <code>null</code></li><br />
<li>Category &#8211; filters the result set to one zanox product category &#8211; <code>null</code></li><br />
<li>Page &#8211; the result set is splitted into pages; only the products of the page set here will be displayed &#8211; <code>0</code></li><br />
<li>Items &#8211; number of products per page &#8211; <code>5</code></li><br />
<li>Search term &#8211; what we are searching for &#8211; <code>red towel</code></li><br />
<li>callback &#8211; access key to the result set &#8211; <code>handler</code></li><br />
</ol></p>
	<p><strong>Playtime!</strong> You can play with some filters now. Try this:</p>

	<p><code>productSearch('2009-02-01', 'BE94C4947839E8AB4D67', null, 'de', '660', null, null, null, 0, 25, 'Rolling Stones', 'handler');</code></p>

	<p><code>productSearch('2009-02-01', 'BE94C4947839E8AB4D67', null, 'se', '660', 8, 20, null, 0, 5, 'Sweater', 'handler');</code></p>

	<p><code>productSearch('2009-02-01', 'BE94C4947839E8AB4D67', null, 'fr', '660', 200, 500, null, 0, 10, 'South Korean Samsung Electronics plans to launch a new generation refrigerator, equipped with RFID, which detects when its contents are running low or approaching expiration dates', 'handler');</code></p>

	<p>Finally we are closing the file &#8230;</p>

	<p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>80
81
82
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>
</p>


	<p>... and the workshop. See you next time!</p>

 ]]></content:encoded>
			<wfw:commentRss>http://blog.zanox.com/en/webservices/2009/04/15/zanox-web-services-workshop-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to monetize your blog, part I</title>
		<link>http://blog.zanox.com/en/webservices/2009/04/03/how-to-monetize-your-blog-part-i/</link>
		<comments>http://blog.zanox.com/en/webservices/2009/04/03/how-to-monetize-your-blog-part-i/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 14:09:59 +0000</pubDate>
		<dc:creator>Daniel Neubauer</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Showcases]]></category>
		<category><![CDATA[Widget production]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[contextual]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[jsonp]]></category>
		<category><![CDATA[products]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://blog.zanox.com/en/webservices/?p=639</guid>
		<description><![CDATA[	This tutorial shows how to monetize blogs using zanox Web Services.

	Part-I of this tutorial will focus on blogger.com.

	So everything you&#8217;ll need to do is:

	Open your Blog Layout at blogger.com (screen 1)
Create a new HTML/Script Gadget (screen 2)
Use the the Widget Source Code from snipplr as content for the HTML/Script Gadget (screen 3)
Replace the ApplicationId in [...]]]></description>
			<content:encoded><![CDATA[	<p>This tutorial shows how to monetize blogs using zanox Web Services.</p>

	<p>Part-I of this tutorial will focus on blogger.com.</p>

	<p>So everything you&#8217;ll need to do is:<br />
<ol></p>
	<p><li>Open your Blog Layout at blogger.com (screen 1)</li><br />
<li>Create a new <span class="caps">HTML</span>/Script Gadget (screen 2)</li><br />
<li>Use the the Widget Source Code from <a title="Widget Script Code" href="http://snipplr.com/view/13746/zanox-web-services--contextual-product-search-widget-for-bloggercom/" target="_blank">snipplr</a> as content for the <span class="caps">HTML</span>/Script Gadget (screen 3)</li><br />
<li>Replace the ApplicationId in the source example with yours and start writing content.</li><br />
</ol></p>
	<p>As you can see at screen 4, the new Gadget shows product data offers as a list of text links, always related to the headline of your blog entry.</p>

	<p>Running live example: <a title="Showcase Blog" href="http://showcaseblog.blogspot.com/" target="_blank">http://showcaseblog.blogspot.com/</a></p>

	<p>Have fun!</p>

	
<a href='http://blog.zanox.com/en/webservices/2009/04/03/how-to-monetize-your-blog-part-i/2009-04-03_layout/' title='2009-04-03_layout'><img width="150" height="150" src="http://blog.zanox.com/en/webservices/wp-content/uploads/2009/04/2009-04-03_layout-150x150.png" class="attachment-thumbnail" alt="" title="2009-04-03_layout" /></a>
<a href='http://blog.zanox.com/en/webservices/2009/04/03/how-to-monetize-your-blog-part-i/2009-04-03_addgadget/' title='2009-04-03_addgadget'><img width="150" height="150" src="http://blog.zanox.com/en/webservices/wp-content/uploads/2009/04/2009-04-03_addgadget-150x150.png" class="attachment-thumbnail" alt="" title="2009-04-03_addgadget" /></a>
<a href='http://blog.zanox.com/en/webservices/2009/04/03/how-to-monetize-your-blog-part-i/2009-04-03_pastecode/' title='2009-04-03_pastecode'><img width="150" height="150" src="http://blog.zanox.com/en/webservices/wp-content/uploads/2009/04/2009-04-03_pastecode-150x150.png" class="attachment-thumbnail" alt="" title="2009-04-03_pastecode" /></a>
<a href='http://blog.zanox.com/en/webservices/2009/04/03/how-to-monetize-your-blog-part-i/2009-04-03_final/' title='2009-04-03_final'><img width="150" height="150" src="http://blog.zanox.com/en/webservices/wp-content/uploads/2009/04/2009-04-03_final-150x150.png" class="attachment-thumbnail" alt="" title="2009-04-03_final" /></a>


	<p><a title="Widget Script Code" href="http://snipplr.com/view/13746/zanox-web-services--contextual-product-search-widget-for-bloggercom/" target="_blank"></a></p>
 ]]></content:encoded>
			<wfw:commentRss>http://blog.zanox.com/en/webservices/2009/04/03/how-to-monetize-your-blog-part-i/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>zanox Web Service benefit: Automation</title>
		<link>http://blog.zanox.com/en/webservices/2009/03/23/zanox-web-service-benefit-automation/</link>
		<comments>http://blog.zanox.com/en/webservices/2009/03/23/zanox-web-service-benefit-automation/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 12:27:11 +0000</pubDate>
		<dc:creator>Francesco Votta</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Widget production]]></category>
		<category><![CDATA[web services]]></category>

		<guid isPermaLink="false">http://blog.zanox.com/en/webservices/?p=544</guid>
		<description><![CDATA[	As you saw with the launch of the new zanox Web Services, one of the first benefit you can have our our new zanox Web Services is automation of your interaction with zanox.

	A&#160;first example could be to retrieving automatically your statistics.

	Watch the video&#160;to get inspired!







	&#160;

	&#160;

	&#160;

	
 ]]></description>
			<content:encoded><![CDATA[	<p>As you saw with the launch of the new zanox Web Services, one of the first benefit you can have our our new zanox Web Services is automation of your interaction with zanox.</p>

	<p>A&#160;first example could be to retrieving automatically your statistics.</p>

	<p>Watch the video&#160;to get inspired!<br />
<div></div><br />
<div><span style="font-size: x-small; font-family: Helv;"><span style="font-size: x-small; font-family: Helv;"><span style="font-size: x-small; font-family: Helv;"></span></span></span></div><br />
<div><span style="font-size: x-small; font-family: Helv;"><span style="font-size: x-small; font-family: Helv;"><span style="font-size: x-small; font-family: Helv;"><span style="font-size: x-small; font-family: Helv;"></span></span></span></span></div><br />
<div><span style="font-size: x-small; font-family: Helv;"><span style="font-size: x-small; font-family: Helv;"><span style="font-size: x-small; font-family: Helv;"><span style="font-size: x-small; font-family: Helv;"><span style="font-size: x-small; font-family: Helv;"></span></span></span></span></span></div><br />
<span style="font-size: x-small; font-family: Helv;"><span style="font-size: x-small; font-family: Helv;"><span style="font-size: x-small; font-family: Helv;"><span style="font-size: x-small; font-family: Helv;"><span style="font-size: x-small; font-family: Helv;"><span style="font-size: x-small; font-family: Helv;"><br />
<p dir="ltr"><object width="430" height="240"><param name="movie" value="http://www.youtube.com/v/LMkNPrJR5X4&#038;hl=de&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/LMkNPrJR5X4&#038;hl=de&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="430" height="240"></embed></object></p></p>

	<p>&#160;</p>

	<p>&#160;</p>

	<p>&#160;</p>

	<p></span></span></span></span></span></span></p>
 ]]></content:encoded>
			<wfw:commentRss>http://blog.zanox.com/en/webservices/2009/03/23/zanox-web-service-benefit-automation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
