MessageMedia Messages Ruby


Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content
Send an SMS
require 'message_media_messages'
require 'pp'
# Configuration parameters and credentials
auth_user_name = 'API_KEY' # The username to use with basic/HMAC authentication
auth_password = 'API_SECRET' # The password to use with basic/HMAC authentication
use_hmac = false # Change this to true if you are using HMAC keys
client =
auth_user_name: auth_user_name,
auth_password: auth_password,
use_hmac: use_hmac
messages = client.messages
body_value = '{
"content":"My first message",
body = JSON.parse(body_value);
result = messages.create_send_messages(body)
pp result
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content