lib/sm/client.rb
##
# Create a message with an attachment
#
# @param args [Hash] a hash of message arguments
# @return [Message]
# @raise [Common::Exceptions::ValidationErrors] if message create context is invalid
#
Create a message with an attachment
Create a message with an attachment
def post_create_message_with_attachment(args = {})
      validate_create_context(args)
      custom_headers = token_headers.merge('Content-Type' => 'multipart/form-data')
      json = perform(:post, 'message/attach', args.to_h, custom_headers).body
      Message.new(json)
    end
def post_create_message_with_attachment ( args = { } ) validate_create_context ( args ) custom_headers = token_headers . merge ( 'Content-Type' => 'multipart/form-data' ) json = perform ( :post , 'message/attach' , args . to_h , custom_headers ) . body Message . new ( json ) end
Create a message with an attachment
Create a message with an attachment
None
Message
[Common::Exceptions::ValidationErrors] if message create context is invalid
[ Common :: Exceptions :: ValidationErrors ] if message create context is invalid
args
a hash of message arguments
a hash of message arguments