Sending SMS with Esendex and Ruby on Rails

Well, the launch of the Hostroute CORE project is coming along quite soon, and one of the requirements for the project is to use the Esendex API to send SMS password reminders, and more.

I have spoken with a few people at Esendex regarding any type of Ruby/Rails implementation, and to date, they still haven’t figured one out. They do, however, have a RESTful API currently in beta which seems to work quite well.

@neilkilbride and I were thinking about writing a Ruby SDK for the API, but I told him a few months ago that I didn’t think it was necessary as Rails comes with ActiveResource.

Boy, was I right!

That code works with only ActiveResource by requiring active_resource, or you can remove that line and use it with Rails out of the box. Nifty!

blog comments powered by Disqus