8000 GitHub - k-akarsh/exotel: Ruby interface to the Exotel API
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

k-akarsh/exotel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

sms_data = {
  "From" => "<6-character Sender ID>"
  "To"   => "<Phone Number>"
  "Body" => "<SMS content>"
}

client.Sms.post(sms_data)

Get Status of An SMS

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

Get Call Details

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

About

Ruby interface to the Exotel API

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE.txt
MIT
MIT-LICENSE

Stars

Watchers

Forks

Releases

No releases published
30A1

Packages

No packages published

Languages

  • Ruby 100.0%
0