title: Receiving data via a callback URL into my rails app
body: <p>I'm trying to receive data from the Nexmo SMS API which can be found here:</p>
  
  <p><a href="http://www.nexmo.com/documentation/#mo" rel="nofollow">a link</a></p>
  
  <p>I have a MessagesController which contains the method:</p>
  
  <pre><code>def external_message
    @message.text = params[:message]
    @message.recipient = params[:to]
    @message.api_message_id = params[:messageId]
  end
  </code></pre>
  
  <p>Am I going about this in the right way? I know that I will also need to amend the routes.rb file but I'm still not sure where to start there either.</p>
  
  <p>Really, really appreciate any help/guidance.</p>