
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to shorten urls with bit.ly in Ruby on Rails.</title>
	<atom:link href="http://coryschires.com/how-to-shorten-urls-with-bit-ly-in-ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://coryschires.com/how-to-shorten-urls-with-bit-ly-in-ruby-on-rails/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 23 Apr 2012 21:13:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Giovanni</title>
		<link>http://coryschires.com/how-to-shorten-urls-with-bit-ly-in-ruby-on-rails/comment-page-1/#comment-816</link>
		<dc:creator>Giovanni</dc:creator>
		<pubDate>Tue, 28 Dec 2010 00:47:03 +0000</pubDate>
		<guid isPermaLink="false">http://coryschires.com/?p=307#comment-816</guid>
		<description>It worked! Thanks.
I think I&#039;ll implement my own URL shortner (to track and analyze as much URLs as I can) but this is a faster solution by now!</description>
		<content:encoded><![CDATA[<p>It worked! Thanks.<br />
I think I&#8217;ll implement my own URL shortner (to track and analyze as much URLs as I can) but this is a faster solution by now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bashar</title>
		<link>http://coryschires.com/how-to-shorten-urls-with-bit-ly-in-ruby-on-rails/comment-page-1/#comment-495</link>
		<dc:creator>Bashar</dc:creator>
		<pubDate>Sat, 09 Oct 2010 08:41:56 +0000</pubDate>
		<guid isPermaLink="false">http://coryschires.com/?p=307#comment-495</guid>
		<description>Thanks dude... Quick and simple :)

Latest version is 3.0 and the short version would be if you only want short url

bitly_url = &quot;http://api.bit.ly/v3/shorten?longUrl=#{url}&amp;login=#{user}&amp;apiKey=#{apikey}&amp;format=txt&quot;
     
# parse result and return shortened url
shorten_url = open(bitly_url, &quot;UserAgent&quot; =&gt; &quot;Ruby-ExpandLink&quot;).read</description>
		<content:encoded><![CDATA[<p>Thanks dude&#8230; Quick and simple <img src='http://coryschires.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Latest version is 3.0 and the short version would be if you only want short url</p>
<p>bitly_url = &#8220;http://api.bit.ly/v3/shorten?longUrl=#{url}&amp;login=#{user}&amp;apiKey=#{apikey}&amp;format=txt&#8221;</p>
<p># parse result and return shortened url<br />
shorten_url = open(bitly_url, &#8220;UserAgent&#8221; =&gt; &#8220;Ruby-ExpandLink&#8221;).read</p>
]]></content:encoded>
	</item>
</channel>
</rss>

