0.01
No commit activity in last 3 years
No release in over 3 years
a Gem for interacting with the Namecheap API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 0.10
~> 10.0
~> 3.1

Runtime

~> 1.6
~> 0.6
 Project Readme

NamecheapApi

a Ruby gem for working with the Namecheap API.

Installation

Add this line to your application's Gemfile:

gem 'namecheap-api'

And then execute:

$ bundle

Or install it yourself as:

$ gem install namecheap-api

Usage

Example:

require 'namecheap_api'

config = {
  sandbox: true,
  client_ip: 'xxx.xxx.xxx.xxx',
  api_username: '<insert username>',
  username: '<insert password>',
  api_key: '<insert api key>'
}

client = NamecheapApi::Client.new(config)
response = client.call('namecheap.domains.check', :DomainList => 'domain1.com,domain2.com')

You can call on NamecheapApi::Response#results to get your results.

response.results returns:

[
  {:domain=>"domain1.com", :available=>"true", :error_no=>"0", :description=>""},
  {:domain=>"domain2.com", :available=>"false", :error_no=>"0", :description=>""}
]

Contributing

  1. Fork it ( https://github.com/PatrickMa/namecheap-api/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request