Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
tmp
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ruby-whois-api

A simple web service for the Ruby WHOIS gem

Usage

git clone this repo and install the necessary gems. Then touch api-keys.txt in the repo root. Open with your favorite text editor. Valid API keys should each live on their own line in this file.

Request the service with the API key as follows

curl -H "Whois-Api-Key: vsdAxe2dajkSf3sjkFSDF34sa" http://my-whois-endpoint.com/google.com

API responds in JSON

status: 200 for successful request, 400 for error data: JSON based on parser from the Ruby WHOIS gem error: Error message (if an error is encountered)

About

Dead simple Sinatra service layer for the Ruby Whois gem

Resources

Releases

No releases published

Packages

No packages published

Languages