class Dingtalktool::ChatService
Public Class Methods
bindChat(accessToken, chatid,agentid)
click to toggle source
# File lib/dingtalktool/chat_service.rb, line 9 def self.bindChat(accessToken, chatid,agentid) response = HttpService.get("/chat/bind?",{access_token: accessToken,chatid: chatid,agentid: agentid}) return response end
createChat(accessToken, chatOpt)
click to toggle source
# File lib/dingtalktool/chat_service.rb, line 4 def self.createChat(accessToken, chatOpt) response = HttpService.post("/chat/create?", {access_token: accessToken}, chatOpt.to_json) return response end
sendmsg(accessToken, opt)
click to toggle source
# File lib/dingtalktool/chat_service.rb, line 14 def self.sendmsg(accessToken, opt) response = HttpService.post("/chat/send?", {access_token: accessToken}, opt.to_json) return response end