class Rails::Ding::ChatService

Public Class Methods

bindChat(accessToken, chatid,agentid) click to toggle source
# File lib/rails/ding/chat_service.rb, line 10
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/rails/ding/chat_service.rb, line 5
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/rails/ding/chat_service.rb, line 15
def self.sendmsg(accessToken, opt)
  response = HttpService.post("/chat/send?", {access_token: accessToken}, opt.to_json)
  return response
end