Module: Dingtalk::Api::Message
- Included in:
- Client
- Defined in:
- lib/dingtalk/api/message.rb
Instance Method Summary collapse
- #send_link(to_users = [], agentid = nil, opts = {}) ⇒ Object
- #send_oa(to_users = [], agentid = nil) ⇒ Object
- #send_text(to_users = [], agentid = nil, message) ⇒ Object
Instance Method Details
#send_link(to_users = [], agentid = nil, opts = {}) ⇒ Object
8 9 10 11 |
# File 'lib/dingtalk/api/message.rb', line 8 def send_link(to_users = [], agentid = nil, opts = {}) # opts :messageUrl=>"",:picUrl=>"",:title=>"",:text=>"" (to_users, agentid, :msgtype => "link", :link => opts) end |
#send_oa(to_users = [], agentid = nil) ⇒ Object
13 14 15 |
# File 'lib/dingtalk/api/message.rb', line 13 def send_oa(to_users = [], agentid = nil) end |
#send_text(to_users = [], agentid = nil, message) ⇒ Object
4 5 6 |
# File 'lib/dingtalk/api/message.rb', line 4 def send_text(to_users = [], agentid = nil, ) (to_users, agentid, :msgtype => "text", :text => { :content => }) end |