No commit activity in last 3 years
No release in over 3 years
A simple library for using the Exotel REST API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.3
>= 0

Runtime

 Project Readme

exotel

Ruby interface to the Exotel API

Install

gem install exotel-api-client

Requirements

  • httparty

Examples

Setup

require 'exotel-api-client'

# put your credentials here
account_sid = '<My Exotel SID>'
account_token = '<My Exotel Token>'

# set up a client that will talk to the Exotel REST API
@client = Exotel::Client.new(account_sid, account_token)

Send An SMS

from_phone = "<6-character Sender ID>"
to_phone   = "<Phone Number>"
msg = "<SMS content>"

client.send_sms(from_phone, to_phone, msg)

Get Status of An SMS

client.SMS.Messages({:sid => '<SmsSid>'})

Get Call Details

client.Calls({:sid => '<CallSid>'})