Project

bvr

0.0
No commit activity in last 3 years
No release in over 3 years
A ruby interface to Bestvoipreselling API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 0.8.8
~> 1.5.2
~> 10.1.1
~> 1.1.3
 Project Readme

Bvr

The BestVoipReselling Ruby Gem

Installation

Add this line to your application's Gemfile:

gem 'bvr'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bvr

Usage

Configuration

Bvr.configure do |config| config.username, config.password = ['username', 'password'] end

Retreiving All the info and form, and manage a customer

customer = Bvr::Customer.find('customer_id')

customer.phones

customer.phones.add( Bvr::Phone.new('+4412345678') )

customer.balance

customer.credit.add(10.20)

customer.credit.rm(1.20)

customer.block!

customer.unblock!

calls = customer.calls({recordcount: 100})

calls.count #=> 250

calls.size #=> 100

calls.next? # => true, 150 are left

Bvr::Customer.authenticate('customer_id', 'pass')

A lot of class methods are available, just have a look at the specs

Contributing

  1. Fork it
  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 new Pull Request

Analytics