CallAction is a mobile web application to automate the tracking and engagement of inbound calls across all marketing channels. This gem is ruby wrapper for CallAction API. It is open source and developed independently to help rails developers CallAction api integration.
MIT License
CallAction is a mobile web application to automate the tracking and engagement of inbound calls across all marketing channels.
This gem is ruby wrapper for CallAction API. It is open source and developed independently to help rails developers CallAction api integration.
CallAction supports and is tested against the following Ruby versions:
CallAction may work just fine with a Ruby version not listed above, but we can't guarantee that it will. If you'd like to maintain a Ruby that isn't listed, please let us know with a pull request.
Add call_action gem to your Gemfile
gem 'call_action'
and than execute following command on console
$ bundle install
Generate configuration file using
$ rails generate call_action:install
It would generate call_action.rb file inside initializers folder of your application. Here you need to specify api version (current version is v1) and your auth token
Please refer to Official Documentation to get list of all available API calls with details.
After installing gem, You can communicate to call_action using API class
To get list of all contacts, call contacts method on call_action object
call_action = CallAction::Api.new
@contacts = call_action.contacts
@contact = @contacts.campaign_name
To get contact attribute
puts @contact.caller_id_name
puts @contact.caller_id_c
To get list of all activities by particular contact
@activities = call_action.activities(@contact.id)
Or you can directly access activities using activities method
@activities = @contact.activities
Get list of all channels using channels method
call_action = CallAction::Api.new
@channels = call_action.channels
Get list of all sources using sources method
call_action = CallAction::Api.new
@sources = call_action.sources
You can contribute by making pull request and develop some owesome feature to help open source community
MIT
Free Software, Hell Yeah!