Skip to content

Commit

Permalink
update document for #send_message
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin91 committed Mar 10, 2018
1 parent 2b61825 commit c46b3fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/rong_cloud/services/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module RongCloud
module Services
# http://www.rongcloud.cn/docs/server.html#消息发送服务
# http://www.rongcloud.cn/docs/server.html#message
module Message
# General method to send messages
# @param from_user_id [String] sender id
Expand All @@ -14,13 +14,16 @@ module Message
# @option content [Object] :content the body of message
# @option content [Object] :extra the extras of message,passed as a string
# and should be parsed by the message consumer
# @option content [Object] :user the informations for user, see: http://www.rongcloud.cn/docs/server.html#user_info
# @param args [Array] additional params,when it includes only one param,
# the args is a options; when 2 params, the first one is the `values` of
# a template message, the the last one is a options
# @param [Hash] options options includes pushContent and pushData and so on,
# total supported options determined by the message type
# @option options [String] :pushContent push content
# @option options [Hash] :pushData push data as payload
# @option options [Hash] :verifyBlacklist verify sender's blacklist
# @option options [Hash] :contentAvailable for iOS devices, see docs for more details
#
def send_message(from_user_id, target_id, channel_name, object_name, content, *args)
options = args.extract_options!
Expand Down

0 comments on commit c46b3fd

Please sign in to comment.