HOW TO send SMS using ruby on rails

Reply

Join Date: Mar 2007
Posts: 6
Reputation: dananos is an unknown quantity at this point 
Solved Threads: 0
dananos dananos is offline Offline
Newbie Poster

Re: HOW TO send SMS using ruby on rails

 
0
  #11
Jul 28th, 2009
Originally Posted by dananos View Post
Et Violá !

Source code for sending SMS from ruby:

SNIP
OK, for some reason, a moderator is removing the download link for the source code for sending SMS from ruby, so I can post the basics of it here, you can find the complete source code with a search "sms ruby freebiesms" in Google.



  1. server = 'http://www.freebiesms.co.uk/sendsms.asmx'
  2.  
  3. service = SOAP::RPC::Driver.new(server, RechnerServiceModule::InterfaceNS)
  4.  
  5. service.default_encodingstyle = SOAP::EncodingStyle::ASPDotNetHandler::Namespace
  6. RechnerServiceModule::add_method(service)
  7.  
  8. result = service.SendSms("Bob","004478660xxxx","00447866xxxxx","Hello From Ruby","en-GB")

(Replace xxxx with the mobile number)

That's the absolute basics, for the full code, just search for "sms ruby freebiesms" in Google.
Last edited by peter_budo; Jul 29th, 2009 at 5:50 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 19768 | Replies: 10
Thread Tools Search this Thread



Tag cloud for Ruby
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC