-
Notifications
You must be signed in to change notification settings - Fork 7
how to send an sms
anthonyoleary edited this page Nov 18, 2015
·
1 revision
To send an SMS we will go directly from CDx to Nuntium. There is no need for hub/mBuilder as we do not need any workflow functionality.
Nuntium: https://bitbucket.org/instedd/nuntium-api-ruby/wiki/Home
-You create an application in Nuntium http://nuntium.instedd.org/ao_messages login to view application: http://nuntium.instedd.org/channels
-we then created a twilio account to send sms's from: https://www.twilio.com/
-to send an sms
require 'nuntium'
//api = Nuntium.new "service_url", "account_name", "application_name", "application_password"
api = Nuntium.new "https://nuntium.instedd.org", "CDx", "CDx-Dev", "cdx123cdx"
message = {
:from => "sms://442393162302",
:to => "sms://447833711701",
:body => "test message",
}
# Send an Application Originated message.
response = api.send_ao message