lib/sm/client.rb
def post_create_message_draft_reply(id, args = {})
      # prevent call if this an existing draft with no association to a reply-to message
      validate_reply_draft(args)

      json = perform(:post, "message/#{id}/replydraft", args, token_headers).body
      json[:data][:has_message] = true

      MessageDraft.new(json).as_reply
    end
##
# Create and update a new message draft reply
#
# @param id [Fixnum] id of the message for which the reply is directed
# @param args [Hash] arguments for the message draft reply
# @raise [Common::Exceptions::ValidationErrors] if the draft reply is not valid
# @return [MessageDraft]
#
Create and update a new message draft reply
Create and update a new message draft reply
def post_create_message_draft_reply(id, args = {})
      validate_reply_draft(args)
      json = perform(:post, "message/#{id}/replydraft", args, token_headers).body
      json[:data][:has_message] = true
      MessageDraft.new(json).as_reply
    end
def post_create_message_draft_reply ( id , args = { } ) validate_reply_draft ( args ) json = perform ( :post , "message/#{id}/replydraft" , args , token_headers ) . body json [ :data ] [ :has_message ] = true MessageDraft . new ( json ) . as_reply end
Create and update a new message draft reply
Create and update a new message draft reply
# prevent call if this an existing draft with no association to a reply-to message
None
MessageDraft
[Common::Exceptions::ValidationErrors] if the draft reply is not valid
[ Common :: Exceptions :: ValidationErrors ] if the draft reply is not valid
id
id of the message for which the reply is directed
id of the message for which the reply is directed
args
arguments for the message draft reply
arguments for the message draft reply