com.github.sd4324530.fastweixin.api
类 CustomAPI

java.lang.Object
  继承者 com.github.sd4324530.fastweixin.api.BaseAPI
      继承者 com.github.sd4324530.fastweixin.api.CustomAPI

public class CustomAPI
extends BaseAPI

客服相关API

从以下版本开始:
1.2
作者:
peiyu

字段摘要
 
从类 com.github.sd4324530.fastweixin.api.BaseAPI 继承的字段
BASE_API_URL, config
 
构造方法摘要
CustomAPI(ApiConfig config)
           
 
方法摘要
 ResultType addCustomAccount(CustomAccount customAccount)
          添加客服帐号
 ResultType deleteCustomAccount(String accountName)
          删除客服帐号
 GetCustomAccountsResponse getCustomAccountList()
          获取所有客服帐号信息
 ResultType sendCustomMessage(String openid, BaseMsg message)
          发布客服消息
 ResultType updateCustomAccount(CustomAccount customAccount)
          修改客服帐号信息
 ResultType uploadHeadImg(String accountName, File file)
          设置客服帐号头像
 
从类 com.github.sd4324530.fastweixin.api.BaseAPI 继承的方法
executeGet, executePost, executePost, isSuccess
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

CustomAPI

public CustomAPI(ApiConfig config)
方法详细信息

sendCustomMessage

public ResultType sendCustomMessage(String openid,
                                    BaseMsg message)
发布客服消息

参数:
openid - 关注者ID
message - 消息对象,支持各种消息类型
返回:
调用结果

addCustomAccount

public ResultType addCustomAccount(CustomAccount customAccount)
添加客服帐号

参数:
customAccount - 客服对象
返回:
添加结果

updateCustomAccount

public ResultType updateCustomAccount(CustomAccount customAccount)
修改客服帐号信息

参数:
customAccount - 客服帐号信息
返回:
修改结果

deleteCustomAccount

public ResultType deleteCustomAccount(String accountName)
删除客服帐号

参数:
accountName - 客服帐号名
返回:
删除结果

uploadHeadImg

public ResultType uploadHeadImg(String accountName,
                                File file)
设置客服帐号头像

参数:
accountName - 客服帐号名
file - 头像文件
返回:
设置结果

getCustomAccountList

public GetCustomAccountsResponse getCustomAccountList()
获取所有客服帐号信息

返回:
所有客服帐号信息对象


Copyright © 2017. All rights reserved.