public class JwKfaccountAPI extends Object
| 构造器和说明 |
|---|
JwKfaccountAPI() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
addKfacount(String accessToken,
String kf_account,
String nickname,
String password)
添加客服
kf_account 是 完整客服账号,格式为:账号前缀@公众号微信号,账号前缀最多10个字符,必须是英文或者数字字符。
|
static String |
deleteKfaccount(String accessToken,
String kf_account,
String nickname,
String password)
删除客服账号
|
static List<WxKfaccount> |
getAllKfaccount(String accessToken)
获取所有的客服账号信息
|
static List<WxKfaccount> |
getAllOnlineKfaccount(String accessToken)
获取在线客服信息
kf_account 完整客服账号,格式为:账号前缀@公众号微信号
status 客服在线状态 1:pc在线,2:手机在线。
|
static void |
main(String[] args) |
static String |
modifyKfaccount(String accessToken,
String kf_account,
String nickname,
String password)
修改客服账号
|
static String |
sendKfMessage(KfcustomSend kfcustomSend)
发送客服信息
access_token 是 调用接口凭证
touser 是 普通用户openid
msgtype 是 消息类型,文本为text,图片为image,语音为voice,视频消息为video,音乐消息为music,图文消息为news
content 是 文本消息内容
media_id 是 发送的图片/语音/视频的媒体ID
thumb_media_id 是 缩略图的媒体ID
title 否 图文消息/视频消息/音乐消息的标题
description 否 图文消息/视频消息/音乐消息的描述
musicurl 是 音乐链接
hqmusicurl 是 高品质音乐链接,wifi环境优先使用该链接播放音乐
url 否 图文消息被点击后跳转的链接
picurl 否 图文消息的图片链接,支持JPG、PNG格式,较好的效果为大图640*320,小图80*80
|
static String |
uploadKfaccountHeadimg(String accessToken,
String kf_account,
String filePathName)
修改客服头像
|
public static String addKfacount(String accessToken, String kf_account, String nickname, String password) throws WexinReqException
accessToken - kf_account - nickname - password - WexinReqExceptionpublic static String modifyKfaccount(String accessToken, String kf_account, String nickname, String password) throws WexinReqException
accessToken - kf_account - nickname - password - WexinReqExceptionpublic static String deleteKfaccount(String accessToken, String kf_account, String nickname, String password) throws WexinReqException
accessToken - kf_account - nickname - password - WexinReqExceptionpublic static String uploadKfaccountHeadimg(String accessToken, String kf_account, String filePathName) throws WexinReqException
accessToken - kf_account - filePathName - WexinReqExceptionpublic static List<WxKfaccount> getAllKfaccount(String accessToken) throws WexinReqException
accessToken - WexinReqExceptionpublic static String sendKfMessage(KfcustomSend kfcustomSend) throws WexinReqException
public static List<WxKfaccount> getAllOnlineKfaccount(String accessToken) throws WexinReqException
accessToken - WexinReqExceptionpublic static void main(String[] args)
Copyright © 2022. All rights reserved.