public class CustomerService extends Object
| 构造器和说明 |
|---|
CustomerService() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getTempMedia(TpConfig tpConfig,
String accessToken,
String mediaId)
获取客服消息内的临时素材。
|
static SetTypingResponse |
setTyping(TpConfig tpConfig,
String accessToken,
String openIdOfToUser,
String command)
下发客服当前输入状态给用户。
|
static UploadTempMediaResponse |
uploadTempMedia(TpConfig tpConfig,
String accessToken,
String type,
String mediaPath)
把媒体文件上传到微信服务器。
|
public static SetTypingResponse setTyping(TpConfig tpConfig, String accessToken, String openIdOfToUser, String command)
tpConfig - 主配置accessToken - 令牌openIdOfToUser - 下发目标用户的OpenIdcommand - 命令,合法值:Typing(对用户下发"正在输入"状态);CancelTyping(取消对用户下发"正在输入"状态)public static UploadTempMediaResponse uploadTempMedia(TpConfig tpConfig, String accessToken, String type, String mediaPath)
tpConfig - 主配置accessToken - 令牌type - 文件类型,合法值:image(图片)mediaPath - 多媒体本地地址Copyright © 2020. All rights reserved.