Get your own customer support community
 

Can someone help me with the domainr JSON API?

I am trying to implement domainr JSON api into my Ruby on Rails application. But when I try to send a GET request to the service it returns back an empty object.
Here's what I am writing
url = URI.parse('http://domai.nr/api/json/search?q=domainr')
req = Net::HTTP::Get.new(url.path)
res = Net::HTTP.start(url.host, url.port) {|http|
http.request(req)
}
and here is what I get back
{\"query\": \"\", \"results\": [], \"error\": {\"status\": 404, \"message\": \"No results found.\"}}

Can anyone throw some light on this? Where am I going wrong? Thanks for any help in advance.
Inappropriate?
1 person has this question

User_default_medium