uri = URI('http://api.meuaplicativo.vip:13006/services/message_send')

Net::HTTP.start(uri.host, uri.port) do |http|
  params = {:line => '5527992052989',
			:destiny => '554684045122',
			:reference => '',
			:text => "Lembrete de agendamento"}

  uri.query = URI.encode_www_form(params)

  request = Net::HTTP::Post.new(uri)
  request.basic_auth 'user', 'api'

  request.content_type = 'application/x-www-form-urlencoded'

  request.set_form_data(:App => 'NetiZap', :AccessKey => '46j2Lb3nidln5o9kqhYW')

  response = http.request(request)
end