wx-tools 客服相關(guān)API

2023-03-22 17:20 更新

包括如下接口:
- addKfAccount - 添加客服
- updateKfAccount - 更新客服
- deleteKfAccount - 刪除客服
- getAllKfAccount - 獲取所有客服信息
- sendMessageByKf - 客服發(fā)送消息
- updateKfHeadImage - 更新客服頭像


3.7.1 addKfAccount 添加客服

WxError result = iService.addKfAccount(new KfAccount("ant@test", "ant", "ant"));
System.out.println(result);

3.7.2 updateKfAccount 更新客服

WxError result = iService.updateKfAccount(new KfAccount("ant@test", "ant", "ant"));
System.out.println(result);

3.7.3 deleteKfAccount 刪除客服

WxError result = iService.deleteKfAccount(new KfAccount("ant@test", "ant", "ant"));
System.out.println(result);

3.7.4 getAllKfAccount 獲取所有客服信息

KfAccountListResult result = iService.getAllKfAccount();
System.out.println(result);

3.7.5 sendMessageByKf 客服發(fā)送消息

KfSender sender = new KfSender();
sender.setTouser("oROCnuNihJnO9bnKOAORDFFriPgQ");
sender.setMsgtype(WxConsts.MASS_MSG_TEXT);
sender.setText(new Text("hi"));
System.out.println(iService.sendMessageByKf(sender))

3.7.6 updateKfHeadImage 更新客服頭像

iService.updateKfHeadImage("oROCnuNihJnO9bnKOAORDFFriPgQ", new File("D:/wx/wx.jpg"));
以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號