Project

serensic

0.0
No commit activity in last 3 years
No release in over 3 years
Serensic Client Library for Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.0
~> 11.0
>= 0
~> 1.0
 Project Readme

Serensic Client SMS Library for Ruby and Rails

This is the Ruby client library for serensic's API. To use it you'll ##Promise You Ill Start Sending sms in no time. First Create An Account Here http://app.serensic.com/

Installation SMS API Coverage Installation ##smpp support still get cooked ##ussd transport comming soon ##hlr lookup comming to the next api release

To install the Ruby client library using Rubygems: gem install serensic Alternatively you can clone the repository: git clone git@github.com:pesaply/serensic-ruby.git Usage Begin by requiring the serensic library: ruby require 'serensic' Then construct a client object with your user and secret:

client = Serensic::Client.new(user: 'YOUR-API-USER', secret: 'YOUR-API-SECRET')

For production you can specify the SERENSIC_USER and SERENSIC_SECRET environment variables instead of specifying the key and secret explicitly.

SMS API

Send a text message

response = client.send_message(to: 'YOUR NUMBER', msg: 'Hello world')
unless response['data'].nil? || response['data'][0]['status'] != 'OK'
  puts "Sent message #{response['data'][0]['smslog_id']}"
else
  puts "Error: #{response['error_string']}"
end

API Coverage

Messaging Send Delivery Receipt Inbound Messages Search reports balance schedule Message Messages Rejections

License

This library is released under the MIT License