A gem to programatically manipulate your Voipfone account using Ruby.
Voipfone is a brilliant SIP VOIP provider with a very neat set of features, but unfortunately no API. So this gem hopefully fills that gap by using the same JSON API their web interface uses.
This gem is in Rubygems, so you can add this line to your application's Gemfile:
And then execute:
Or you can manually install the gem using:
gem install voipfone_client
Configuration and Use
Before you can instantiate a
VoipfoneClient::Client object, you need to need to configure it:
VoipfoneClient.configure do |config| config.username = "email@example.com" config.password = "yourpass" end
This approach gives us lots of options for adding more config options in the future.
After that you can create a new object to call Voipfone:
c = VoipfoneClient::Client.new c.account_balance #will return your balance as a float
We'd love your input!
- Fork it ( http://github.com/errorstudio/voipfone_client/fork )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request