<?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>Geoff Evason &#187; plugin</title>
	<atom:link href="http://geoff.evason.name/tag/plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://geoff.evason.name</link>
	<description></description>
	<lastBuildDate>Mon, 03 May 2010 01:22:04 +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>Domain Name Registration API Plugin for Rails</title>
		<link>http://geoff.evason.name/2009/02/26/domain-name-registration-api-plugin-for-rails/</link>
		<comments>http://geoff.evason.name/2009/02/26/domain-name-registration-api-plugin-for-rails/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 00:55:50 +0000</pubDate>
		<dc:creator>Geoff</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[domain name]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[register]]></category>

		<guid isPermaLink="false">http://geoff.evason.name/?p=63</guid>
		<description><![CDATA[If you&#8217;ve ever had an app where you want to allow users to purchase a domain name, you&#8217;ve probably felt the pain of trying to interface to a registrar.  Although some have APIs, my search found that most were hard to interface to or poorly documented.  Many even required signing up as a partner (and [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever had an app where you want to allow users to purchase a domain name, you&#8217;ve probably felt the pain of trying to interface to a registrar.  Although some have APIs, my search found that most were hard to interface to or poorly documented.  Many even required signing up as a partner (and paying a big fee) before you could even get documenation.</p>
<p>After much searching and experimenting I decided to go with <a href="http://www.register.com">Register.com</a>&#8217;s XML api for my app.  They offered the best API, and the easiest signup path.</p>
<p>I bundled the main part of the interface into a rails plugin.  The plugin is stored on github: <a href="http://github.com/geoffevason/register-api/tree/master" title="register.com api for rails">http://github.com/geoffevason/register-api/tree/master</a></p>
<p>To install the plugin do this:</p>
<pre><code>
script/plugin install git://github.com/geoffevason/register-api.git
</code></pre>
<p>The plugin is of little value unless you have spoken to register.com and have received their API documentation.  You need to register as a partner (it&#8217;s free) and have the IP of your dev machine whitelisted for testing.</p>
<p>Most of the info on use is in the readme in the plugin.  You can call any of the Register.com API methods by calling Register::API.</p>
<pre><code class='ruby'>
# A call to the API looks like this
# Register::Api::Call(params)

# Example to check if the domain name google.com is available
Register::Api::Check( :tld => 'com', :sld => 'google' )
</code></pre>
<p>The plugin also contains a few helper methods and classes.  If all you want to do is let people search for an available domain, and purchase it, then everything you need is in these helpers.  Some important logic remains in my controllers, but if you have any questions, let me know.  geoff [a] evason.name</p>
]]></content:encoded>
			<wfw:commentRss>http://geoff.evason.name/2009/02/26/domain-name-registration-api-plugin-for-rails/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
