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 here
fapi_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.new fapi_key, fapi_secret, fapi_host
# alternatively, you can preconfigure the client like so
Foneapi.configure do |config|
config.fapi_key = fapi_key
config.fapi_secret = fapi_secret
config.fapi_host = fapi_host
end
# 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