Skip to content

anvyst/whmcs-ruby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whmcs-ruby

whmcs-ruby provides Ruby bindings for the WHMCS API.

Usage

require 'whmcs'

WHMCS.configure do |config|
  config.api_url      = 'http://example.com/includes/api.php'
  config.api_username = 'someusername'
  config.api_password = 'c4ca4238a0b923820dcc509a6f75849b' # md5 hash
end

WHMCS::Client.get_clients_details(:clientid => '1')

API Access Key

Recently, WHMCS offered another type of authenticating API requests. Using API Access Key might be useful for mobile devices and/or IPv6 bug WHMCS whitelists currently have.

require 'whmcs'

WHMCS.configure do |config|
  config.api_url      = 'http://example.com/includes/api.php'
  config.api_username = 'someusername'
  config.api_password = 'c4ca4238a0b923820dcc509a6f75849b' # md5 hash
  config.api_access_key = 'YetAnotherAPIAccessKeyForWHMCS'
end

WHMCS::Client.get_clients_details(:clientid => '1')

See the documentation for more details.

Installation

gem install whmcs-ruby

Copyright

Copyright (c) 2011 DotBlock.com, see LICENSE in this repo for details.

Packages

No packages published

Languages

  • Ruby 100.0%