GithubHelp home page GithubHelp logo

virtengine / whmcs-ruby Goto Github PK

View Code? Open in Web Editor NEW

This project forked from megamsys/whmcs-ruby

0.0 5.0 1.0 192 KB

Ruby bindings for the WHMCS API

Home Page: http://dotblock.github.com/whmcs-ruby/

License: Other

Ruby 100.00%

whmcs-ruby's Introduction

whmcs-ruby

whmcs-ruby provides Ruby bindings for the WHMCS API.

This WHMCS repo contains pullrequests from

  1. https://github.com/timrogers/whmcs-ruby
  2. https://github.com/fcoury/whmcs-ruby
  3. https://github.com/anvyst/whmcs-ruby
  4. https://github.com/coderhs/whmcs-ruby

that are hidden inside or not merged into dotblock/whmcs-ruby

Several nice contributions haven't gone upstream or merged :(

megamsys/whmcs-ruby descends from timrogers/whmcs-ruby

Here are those.

  1. Adds getproducts
  1. API key access
  1. Fixed breakage of hash, incases of special characters
  2. Added WHMCS::Response as an easier wrapper for the respose
  3. Attributes is now HashWithIndifferentAccess and added Response#key?
  4. Added Order#upgrade_product method
  5. Add cancel request though client
  6. Fixed comments on Client#add_cancel_request to match overall
  7. Moved add_credit from Invoice to Client

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

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

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

whmcs-ruby's People

Contributors

fcoury avatar itspriddle avatar felipeik avatar anvyst avatar coderhs avatar rathishvbr avatar vinomca-megam avatar

Watchers

James Cloos avatar Kishorekumar Neelamegam avatar Raj avatar Jonathan Philipos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.