Ruby wrapper for the Foneapi API http://www.foneapi.com
Add this line to your application's Gemfile:
gem'foneapi-ruby'And then execute:
$ bundle
Or install it yourself as:
$ gem install foneapi-ruby
require'foneapi-ruby'# put your own credentials herefapi_key='xxxxxxxxxxxxxxxxxxxx'fapi_secret='yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'fapi_host='http://yourfoneapiserver.com'# set up a client to talk to the Twilio REST API@client=Foneapi::Rest::Client.newfapi_key,fapi_secret,fapi_host# alternatively, you can preconfigure the client like soFoneapi.configuredo |config|
config.fapi_key=fapi_keyconfig.fapi_secret=fapi_secretconfig.fapi_host=fapi_hostend# and then you can create a new client without parameters@client=Foneapi::Rest::Client.new- Fork it ( https://github.com/[my-github-username]/my_gem/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 a new Pull Request