whmcs-ruby provides Ruby bindings for the WHMCS API.
- https://github.com/timrogers/whmcs-ruby
- https://github.com/fcoury/whmcs-ruby
- https://github.com/anvyst/whmcs-ruby
- https://github.com/coderhs/whmcs-ruby
that are hidden inside or not merged into dotblock/whmcs-ruby
megamsys/whmcs-ruby descends from timrogers/whmcs-ruby
Here are those.
Fix from timrogers/whmcs-ruby
- Adds getproducts
Fix from anvyst/whmcs-ruby
- API key access
Fix from fcoury/whmcs-ruby
- Fixed breakage of hash, incases of special characters
- Added WHMCS::Response as an easier wrapper for the respose
- Attributes is now HashWithIndifferentAccess and added Response#key?
- Added Order#upgrade_product method
- Add cancel request though client
- Fixed comments on Client#add_cancel_request to match overall
- Moved add_credit from Invoice to Client
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')
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.
Caveat: gem install whmcs-ruby
will not work as this isn't pushed yet.
gem 'whmcs-ruby', :git => 'https://github.com/timrogers/whmcs-ruby.git'
Copyright (c) 2011 DotBlock.com, see LICENSE in this repo for details.