<?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>Vidul Nikolaev Petrov &#187; api</title>
	<atom:link href="http://www.vidul.com/category/ruby/api/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vidul.com</link>
	<description>my web space</description>
	<lastBuildDate>Wed, 11 Aug 2010 06:22:44 +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>Google::Translate, A Simple API In Ruby</title>
		<link>http://www.vidul.com/2008/07/31/google-translate-a-simple-api-in-ruby/</link>
		<comments>http://www.vidul.com/2008/07/31/google-translate-a-simple-api-in-ruby/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 12:03:00 +0000</pubDate>
		<dc:creator>Vidul</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[api]]></category>

		<guid isPermaLink="false">urn:uuid:{a.guid}</guid>
		<description><![CDATA[
require 'rubygems'
require 'google_translate'
&#160;
tr = Google::Translate.new
&#160;
# from English to German
tr.translate :from =&#62; &#34;en&#34;, :to =&#62; &#34;de&#34;, :text =&#62; &#34;Hello, World!&#34;
 =&#62; Hallo, Welt!
&#160;
# from English to Spanish
tr.translate :from =&#62; &#34;en&#34;, :to =&#62; &#34;es&#34;, :text =&#62; &#34;Hello, World!&#34;
 =&#62; Hola, Mundo!
&#160;
# WWW::Mechanize constructor usage
tr = Google::Translate.new &#123; &#124;agent&#124; agent.user_agent_alias = 'Mac Safari' &#125;

The project home page





		
			Share this [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:arial,verdana,monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'rubygems'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'google_translate'</span>
&nbsp;
tr = <span style="color:#6666ff; font-weight:bold;">Google::Translate</span>.<span style="color:#9900CC;">new</span>
&nbsp;
<span style="color:#008000; font-style:italic;"># from English to German</span>
tr.<span style="color:#9900CC;">translate</span> <span style="color:#ff3333; font-weight:bold;">:from</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;en&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:to</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;de&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:text</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;Hello, World!&quot;</span>
 <span style="color:#006600; font-weight:bold;">=&gt;</span> Hallo, Welt!
&nbsp;
<span style="color:#008000; font-style:italic;"># from English to Spanish</span>
tr.<span style="color:#9900CC;">translate</span> <span style="color:#ff3333; font-weight:bold;">:from</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;en&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:to</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;es&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:text</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;Hello, World!&quot;</span>
 <span style="color:#006600; font-weight:bold;">=&gt;</span> Hola, Mundo!
&nbsp;
<span style="color:#008000; font-style:italic;"># WWW::Mechanize constructor usage</span>
tr = <span style="color:#6666ff; font-weight:bold;">Google::Translate</span>.<span style="color:#9900CC;">new</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>agent<span style="color:#006600; font-weight:bold;">|</span> agent.<span style="color:#9900CC;">user_agent_alias</span> = <span style="color:#996600;">'Mac Safari'</span> <span style="color:#006600; font-weight:bold;">&#125;</span></pre></div></div>

<p><a href="http://googletrl.rubyforge.org/">The project home page</a></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center">
<ul class="socials">
		<li class="sexy-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.vidul.com/2008/07/31/google-translate-a-simple-api-in-ruby/&amp;Title=Google%3A%3ATranslate%2C+A+Simple+API+In+Ruby" rel="nofollow" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.vidul.com/2008/07/31/google-translate-a-simple-api-in-ruby/&amp;title=Google%3A%3ATranslate%2C+A+Simple+API+In+Ruby" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.vidul.com/2008/07/31/google-translate-a-simple-api-in-ruby/&amp;title=Google%3A%3ATranslate%2C+A+Simple+API+In+Ruby" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.vidul.com/2008/07/31/google-translate-a-simple-api-in-ruby/&amp;title=Google%3A%3ATranslate%2C+A+Simple+API+In+Ruby" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.vidul.com/2008/07/31/google-translate-a-simple-api-in-ruby/&amp;title=Google%3A%3ATranslate%2C+A+Simple+API+In+Ruby" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.vidul.com/2008/07/31/google-translate-a-simple-api-in-ruby/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Google%3A%3ATranslate%2C+A+Simple+API+In+Ruby+-+http://b2l.me/bj9cg+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-newsvine">
			<a href="http://www.newsvine.com/_tools/seed&amp;save?u=http://www.vidul.com/2008/07/31/google-translate-a-simple-api-in-ruby/&amp;h=Google%3A%3ATranslate%2C+A+Simple+API+In+Ruby" rel="nofollow" title="Seed this on Newsvine">Seed this on Newsvine</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.vidul.com/2008/07/31/google-translate-a-simple-api-in-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Translation API for Ruby</title>
		<link>http://www.vidul.com/2008/07/27/google-translation-api-for-ruby/</link>
		<comments>http://www.vidul.com/2008/07/27/google-translation-api-for-ruby/#comments</comments>
		<pubDate>Sun, 27 Jul 2008 12:47:00 +0000</pubDate>
		<dc:creator>Vidul</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[api]]></category>

		<guid isPermaLink="false">urn:uuid:{a.guid}</guid>
		<description><![CDATA[In essence (from bulgarian to japanese):

agent = WWW::Mechanize.new
  agent.post&#40;&#34;http://translate.google.com/translate_t&#34;,
    &#34;sl&#34; =&#62; &#34;bg&#34;,
    &#34;tl&#34; =&#62; &#34;ja&#34;,
    &#34;text&#34; =&#62; &#34;Здравей, свят!&#34;&#41;.search&#40;&#34;#result_box&#34;&#41;.inner_html

results in こんにちは、世界！





		
			Share this on Blinklist
		
		
			Share this on del.icio.us
		
		
			Digg this!
		
		
			Share this on Reddit
		
		
			Stumble upon something good? Share it on StumbleUpon
		
		
			Share this on Technorati
		
		
			Tweet This!
		
		
			Seed this on Newsvine
		





]]></description>
			<content:encoded><![CDATA[<p>In essence (from bulgarian to japanese):</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:arial,verdana,monospace;">agent = <span style="color:#6666ff; font-weight:bold;">WWW::Mechanize</span>.<span style="color:#9900CC;">new</span>
  agent.<span style="color:#9900CC;">post</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;http://translate.google.com/translate_t&quot;</span>,
    <span style="color:#996600;">&quot;sl&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;bg&quot;</span>,
    <span style="color:#996600;">&quot;tl&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;ja&quot;</span>,
    <span style="color:#996600;">&quot;text&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;Здравей, свят!&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">search</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;#result_box&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">inner_html</span></pre></div></div>

<p>results in こんにちは、世界！</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center">
<ul class="socials">
		<li class="sexy-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.vidul.com/2008/07/27/google-translation-api-for-ruby/&amp;Title=Google+Translation+API+for+Ruby" rel="nofollow" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.vidul.com/2008/07/27/google-translation-api-for-ruby/&amp;title=Google+Translation+API+for+Ruby" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.vidul.com/2008/07/27/google-translation-api-for-ruby/&amp;title=Google+Translation+API+for+Ruby" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.vidul.com/2008/07/27/google-translation-api-for-ruby/&amp;title=Google+Translation+API+for+Ruby" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.vidul.com/2008/07/27/google-translation-api-for-ruby/&amp;title=Google+Translation+API+for+Ruby" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.vidul.com/2008/07/27/google-translation-api-for-ruby/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Google+Translation+API+for+Ruby+-+http://b2l.me/bm4fu+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-newsvine">
			<a href="http://www.newsvine.com/_tools/seed&amp;save?u=http://www.vidul.com/2008/07/27/google-translation-api-for-ruby/&amp;h=Google+Translation+API+for+Ruby" rel="nofollow" title="Seed this on Newsvine">Seed this on Newsvine</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.vidul.com/2008/07/27/google-translation-api-for-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
