Novofon — Virtual Phone System, Phone numbers and PBX
Official documentation API Novofon
Add this line to your application's Gemfile:
gem "novofon"
And then execute:
bundle install
Or install it yourself as:
gem install novofon
Novofon.api_key = "YOUR_API_KEY"
Novofon.api_secret = "YOUR_API_SECRET"
Novofon.log_requests = false # default
Novofon::Client.balance
or
client = Novofon::Client.new("YOUR_API_KEY", "YOUR_API_SECRET")
client.balance
You can use the available methods or use .request
Novofon::Client.request(:method, "path", params = {})
Novofon::Client.request(:get, "/info/balance/")
balance
- user balanceprice(number)
- call pricecallback(from, to, params = {})
- request callbackchecknumber(caller_id, to, code, params = {})
- number verificationsip
- list user’s SIP-numbersset_sip_caller(id, number)
- change of CallerIDredirection(params = {})
- get call forwarding status on SIP-numbersset_redirect(id, params)
- enable/disable sip forwardingpbx_internal
- list PBX internal numberspbx_record(id, status, params = {})
- toggle call recordingsend_sms(number, message, params = {})
- send smsstatistics(date_start, date_end, params = {})
- get statspbx_statistics(date_start, date_end)
- get PBX statsdirect_numbers
- information about the user's phone numbersdirect_numbers_available(direction_id)
- numbers available for orderdirect_numbers_countries
- list of countries numbers can be ordered from