RUBY sample code to use Reson8 SMS API
def SendSMS(api_url, username, password, msg_body, msg_encoding, country_code, area_code, recipients, msg_header)
url = URI.parse(api_url)
request = Net::HTTP::Post.new(url.path)
request.content_type = 'application/x-www-form-urlencoded'
request.body = 'SenderName=' + username + '&Password=' + password + '&MessageBody=' + msg_body + '&Encoding=' + msg_encoding + '&CountryCode=' + country_code + '&AreaCode=' + area_code + '&MessageRecipients=' + recipients + '&MsgHeader=' + msg_header + '&MCC=&MNC='
response = Net::HTTP.start(url.host, url.port) {|http| http.request(request)}
return response.body
end