<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Love2Trade&#039;s Blog &#187; oodle</title>
	<atom:link href="http://blog.love2trade.com/tag/oodle/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.love2trade.com</link>
	<description>Love2Trade Plans, Ideas &#38; Vision</description>
	<lastBuildDate>Fri, 06 Jan 2012 14:53:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.love2trade.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Love2Trade&#039;s Blog &#187; oodle</title>
		<link>http://blog.love2trade.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.love2trade.com/osd.xml" title="Love2Trade&#039;s Blog" />
	<atom:link rel='hub' href='http://blog.love2trade.com/?pushpress=hub'/>
		<item>
		<title>Oodle .NET API library &#8211; OodleRestApi</title>
		<link>http://blog.love2trade.com/2010/09/13/oodleapi/</link>
		<comments>http://blog.love2trade.com/2010/09/13/oodleapi/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 04:20:32 +0000</pubDate>
		<dc:creator>ash</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[classifieds]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[free code]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[oodle]]></category>
		<category><![CDATA[oodle api]]></category>
		<category><![CDATA[parser]]></category>
		<category><![CDATA[rest]]></category>

		<guid isPermaLink="false">http://blog.love2trade.com/?p=110</guid>
		<description><![CDATA[So I recently started to focus my effort to switch over from the legacy xml interface with oodle to their new REST-based web service for love2trade.com since it promises to be 20 times faster!   I spent several hours trying to put this library together which should help others as well. Many thanks for Steve [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.love2trade.com&amp;blog=1998526&amp;post=110&amp;subd=love2trade&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I recently started to focus my effort to switch over from the legacy xml interface with oodle to their new REST-based web service for love2trade.com since it promises to be 20 times faster!  <em> </em>I spent several hours trying to put this library together which should help others as well. Many thanks for <a title="Steven Baker from Oodle" href="http://www.stevenbaker.com/about/" target="_blank">Steve Baker</a> from oodle in helping me get some issues sorted out.</p>
<p>We will make this library open source at some point in the near future. For now you are free to use the library &amp; if you really want the code, shoot me an email!</p>
<div id="_mcePaste">OodleRestApi.NET is a free library that I have developed in my personal time. I would really appreciate your feedback and support for OodleRestApi and its future development.</div>
<div>Getting Started:</div>
<div>1. <a title="OodleRestApi.NET library" href="http://www.love2trade.com/Love2Trade.OodleRestApi.zip" target="_blank">Download OodleRestApi dll from </a><strong><a title="OodleRestApi.NET library" href="http://www.love2trade.com/Love2Trade.OodleRestApi.zip" target="_blank">here</a> (library is compiled in .NET 4.0)<br />
Or get the <a title="Oodle Rest .NET api 2.0" href="http://love2trade.com/Love2Trade.OodleRestApi20.zip" target="_blank">OodleRestApi .NET 2.0 build from here</a> </strong></div>
<div>2.  In your project, add reference to the OodleRestApi library Love2Trade.OodleRestApi.dll</div>
<div><a href="http://love2trade.files.wordpress.com/2010/09/reference.png"><img class="alignnone size-full wp-image-113" title="reference" src="http://love2trade.files.wordpress.com/2010/09/reference.png?w=468" alt=""   /></a></div>
<div>3. OodleRestApi uses  JSON.NET for deserializing oodle&#8217;s response. You will need to download the latests from <a href="http://json.codeplex.com/releases/view/50552">http://json.codeplex.com/</a>. After that you will need to add reference to Newtonsoft.Json.dll in your project</div>
<div>4. Now you are ready to roll!! The quickest way to learn is to show you a sample client.</div>
<p><pre class="brush: csharp;">

//Create the OodleRequest object that will be serialized to the server
OodleRequest oodleRequest = new OodleRequest(&quot;TEST&quot;);
oodleRequest.Filter.location.Region = Regions.RegionTypes._usa;
oodleRequest.Paging.Start = 1;
oodleRequest.Paging.Num = 50;
oodleRequest.Filter.refinements = Filter.refinementsTypes.none;
oodleRequest.Paging.Sort = Paging.SortKey.ctime;
oodleRequest.Filter.attributes.AddPriceRange(5000, 6000);
oodleRequest.category = &quot;vehicle&quot;;
oodleRequest.q = &quot;honda civic&quot;;

//Creating the webrequest object - Notice that the oodleRequest is simply a string representation of your query which you can print to the screen for troubleshooting
WebRequest webRequest = WebRequest.Create(oodleRequest.ToString());
using (WebResponse response = webRequest.GetResponse())
{
    using (StreamReader reader = new StreamReader(response.GetResponseStream()))
    {
        //this will get the JSON result back from oodle
        string output = reader.ReadToEnd();
        //We do a minor alteration in the json string due to a problem oodle is facing with php's representation of objects as arrays
        output = output.Replace(&quot;\&quot;location\&quot;:[]&quot;, &quot;\&quot;location\&quot;:{}&quot;).Replace(&quot;\&quot;user\&quot;:[]&quot;, &quot;\&quot;user\&quot;:{}&quot;);
        OodleResult Result = JsonConvert.DeserializeObject&lt;OodleResult&gt;(output);
        //Now you can whatever you want with the results, you can start by iterating through Result.Listings to view all the listings your query returned
    }
}
</pre></p>
<p>You will notice that both the OodleRequest &amp; OodleResponse objects represents a very similar structure to the structure defined by oodle in <a title="Oodle Api parameters" href="http://developer.oodle.com/listings" target="_blank">Oodle Api parameters</a></p>
<p>The Oodle Response is broken down to 5 main parts</p>
<ul>
<li><strong>Current</strong> &#8211; This contains information about the query that is returned, (ex. Region, Category, Start item #, Num or items returned).</li>
<li><strong>Listings</strong> &#8211; This is a strong typed array of Listings. The maximum you will ever find is 50 items <a href="http://developer.oodle.com/listings#num" target="_blank">as defined by oodle</a></li>
<li><strong>Meta</strong> &#8211; Metadata details on the results available. How many total items available for your search query&#8230;etc. This is very important if you are implementing paging in your result set.</li>
<li><strong>Refinements</strong> &#8211; by default this is null unless you have requested refinements in your oodle request (ex. <span style="font-family:Consolas, Monaco, 'Courier New', Courier, monospace;line-height:18px;font-size:12px;white-space:pre;">oodleRequest.Filter.refinements=none | simple | full)</span><span style="font-family:Consolas, Monaco, 'Courier New', Courier, monospace;font-size:small;"><span style="line-height:18px;white-space:pre;"> </span></span></li>
<li><strong>Stat</strong> &#8211; should always be &#8220;ok&#8221; if everything runs good.</li>
</ul>
<p>Everything else is really self explanatory and you can depend on your IDE&#8217;s intellisense to guide you. Feel free to comment on this post if you have any Qs.</p>
<p>Let me know your feedback!! :)</p>
<div>
<dl class="wp-caption alignnone">
<dt class="wp-caption-dt"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=X3VY4SLFQN25Q"><img class="size-full wp-image-111" title="Donate" src="http://love2trade.files.wordpress.com/2010/09/btn_donatecc_lg.gif?w=468" alt="Support OodleRestApi"   /></a></dt>
<dd class="wp-caption-dd">We appreciate your support for OodleRestApi</dd>
</dl>
</div>
<br />Filed under: <a href='http://blog.love2trade.com/category/technical/'>Technical</a> Tagged: <a href='http://blog.love2trade.com/tag/classifieds/'>classifieds</a>, <a href='http://blog.love2trade.com/tag/feed/'>feed</a>, <a href='http://blog.love2trade.com/tag/free-code/'>free code</a>, <a href='http://blog.love2trade.com/tag/json/'>json</a>, <a href='http://blog.love2trade.com/tag/oodle/'>oodle</a>, <a href='http://blog.love2trade.com/tag/oodle-api/'>oodle api</a>, <a href='http://blog.love2trade.com/tag/parser/'>parser</a>, <a href='http://blog.love2trade.com/tag/rest/'>rest</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/love2trade.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/love2trade.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/love2trade.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/love2trade.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/love2trade.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/love2trade.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/love2trade.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/love2trade.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/love2trade.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/love2trade.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/love2trade.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/love2trade.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/love2trade.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/love2trade.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.love2trade.com&amp;blog=1998526&amp;post=110&amp;subd=love2trade&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.love2trade.com/2010/09/13/oodleapi/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5ee1d5183135a3e9ef2a32c7690ca2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ash</media:title>
		</media:content>

		<media:content url="http://love2trade.files.wordpress.com/2010/09/reference.png" medium="image">
			<media:title type="html">reference</media:title>
		</media:content>

		<media:content url="http://love2trade.files.wordpress.com/2010/09/btn_donatecc_lg.gif" medium="image">
			<media:title type="html">Donate</media:title>
		</media:content>
	</item>
		<item>
		<title>Love2Trade announcing partnership with Oodle©</title>
		<link>http://blog.love2trade.com/2008/04/12/announcing-our-partnership-with-oodle/</link>
		<comments>http://blog.love2trade.com/2008/04/12/announcing-our-partnership-with-oodle/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 13:54:14 +0000</pubDate>
		<dc:creator>ash</dc:creator>
				<category><![CDATA[Love2Trade News]]></category>
		<category><![CDATA[classifieds]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[oodle]]></category>
		<category><![CDATA[partnership]]></category>
		<category><![CDATA[post]]></category>

		<guid isPermaLink="false">http://love2trade.wordpress.com/?p=49</guid>
		<description><![CDATA[We&#8217;re excited to announce our partnership with Oodle. If you don&#8217;t know about Oodle, it is possibly the nation&#8217;s largest index of classified listings! They have more than 10 million classified listings from thousands of sources. Now love2trade visitors search queries will include results from both love2trade listings as well as oodle, this will give our visitors [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.love2trade.com&amp;blog=1998526&amp;post=49&amp;subd=love2trade&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re excited to announce our partnership with <a href="http://www.oodle.com" target="_blank">Oodle</a>. If you don&#8217;t know about Oodle, it is possibly the nation&#8217;s largest index of classified listings! They have more than 10 million classified listings from thousands of sources.</p>
<p>Now love2trade visitors search queries will include results from both love2trade listings as well as oodle, this will give our visitors access to millions of listings in the US, Canada &amp; the UK.</p>
<p>-Ash</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/love2trade.wordpress.com/49/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/love2trade.wordpress.com/49/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/love2trade.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/love2trade.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/love2trade.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/love2trade.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/love2trade.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/love2trade.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/love2trade.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/love2trade.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/love2trade.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/love2trade.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/love2trade.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/love2trade.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/love2trade.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/love2trade.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.love2trade.com&amp;blog=1998526&amp;post=49&amp;subd=love2trade&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.love2trade.com/2008/04/12/announcing-our-partnership-with-oodle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5ee1d5183135a3e9ef2a32c7690ca2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ash</media:title>
		</media:content>
	</item>
	</channel>
</rss>
