C# Class Senparc.Weixin.QY.AdvancedAPIs.KFApi

发送消息
Show file Open project: JeffreySu/WeiXinMPSDK

Public Methods

Method Description
GetKFList ( string accessToken, KF_Type type = null, int timeOut = Config.TIME_OUT ) : GetKFListResult

获取客服列表

GetKFListAsync ( string accessToken, KF_Type type = null, int timeOut = Config.TIME_OUT ) : Task

获取客服列表

SendFile ( string accessToken, KF_User_Type senderType, string senderId, KF_User_Type receiverType, string receiverId, string mediaId, int timeOut = Config.TIME_OUT ) : QyJsonResult

发送文件信息

SendFileAsync ( string accessToken, KF_User_Type senderType, string senderId, KF_User_Type receiverType, string receiverId, string mediaId, int timeOut = Config.TIME_OUT ) : Task

【异步方法】发送文件信息

SendImage ( string accessToken, KF_User_Type senderType, string senderId, KF_User_Type receiverType, string receiverId, string mediaId, int timeOut = Config.TIME_OUT ) : QyJsonResult

发送图片信息

SendImageAsync ( string accessToken, KF_User_Type senderType, string senderId, KF_User_Type receiverType, string receiverId, string mediaId, int timeOut = Config.TIME_OUT ) : Task

【异步方法】发送图片信息

SendText ( string accessToken, KF_User_Type senderType, string senderId, KF_User_Type receiverType, string receiverId, string content, int timeOut = Config.TIME_OUT ) : QyJsonResult

发送文本信息

SendTextAsync ( string accessToken, KF_User_Type senderType, string senderId, KF_User_Type receiverType, string receiverId, string content, int timeOut = Config.TIME_OUT ) : Task

【异步方法】发送文本信息

SendVoice ( string accessToken, KF_User_Type senderType, string senderId, KF_User_Type receiverType, string receiverId, string mediaId, int timeOut = Config.TIME_OUT ) : QyJsonResult

发送语音信息

SendVoiceAsync ( string accessToken, KF_User_Type senderType, string senderId, KF_User_Type receiverType, string receiverId, string mediaId, int timeOut = Config.TIME_OUT ) : Task

【异步方法】发送语音信息

Method Details

GetKFList() public static method

获取客服列表
public static GetKFList ( string accessToken, KF_Type type = null, int timeOut = Config.TIME_OUT ) : GetKFListResult
accessToken string
type KF_Type 不填时,同时返回内部、外部客服列表
timeOut int
return Senparc.Weixin.QY.AdvancedAPIs.KF.GetKFListResult

GetKFListAsync() public static method

获取客服列表
public static GetKFListAsync ( string accessToken, KF_Type type = null, int timeOut = Config.TIME_OUT ) : Task
accessToken string
type KF_Type 不填时,同时返回内部、外部客服列表
timeOut int
return Task

SendFile() public static method

发送文件信息
public static SendFile ( string accessToken, KF_User_Type senderType, string senderId, KF_User_Type receiverType, string receiverId, string mediaId, int timeOut = Config.TIME_OUT ) : QyJsonResult
accessToken string 调用接口凭证
senderType KF_User_Type 发送人类型
senderId string 发送人标志
receiverType KF_User_Type 接收人类型
receiverId string 接收人标志
mediaId string 文件的mediaId
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.QyJsonResult

SendFileAsync() public static method

【异步方法】发送文件信息
public static SendFileAsync ( string accessToken, KF_User_Type senderType, string senderId, KF_User_Type receiverType, string receiverId, string mediaId, int timeOut = Config.TIME_OUT ) : Task
accessToken string 调用接口凭证
senderType KF_User_Type 发送人类型
senderId string 发送人标志
receiverType KF_User_Type 接收人类型
receiverId string 接收人标志
mediaId string 文件的mediaId
timeOut int 代理请求超时时间(毫秒)
return Task

SendImage() public static method

发送图片信息
public static SendImage ( string accessToken, KF_User_Type senderType, string senderId, KF_User_Type receiverType, string receiverId, string mediaId, int timeOut = Config.TIME_OUT ) : QyJsonResult
accessToken string 调用接口凭证
senderType KF_User_Type 发送人类型
senderId string 发送人标志
receiverType KF_User_Type 接收人类型
receiverId string 接收人标志
mediaId string 图片的mediaId
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.QyJsonResult

SendImageAsync() public static method

【异步方法】发送图片信息
public static SendImageAsync ( string accessToken, KF_User_Type senderType, string senderId, KF_User_Type receiverType, string receiverId, string mediaId, int timeOut = Config.TIME_OUT ) : Task
accessToken string 调用接口凭证
senderType KF_User_Type 发送人类型
senderId string 发送人标志
receiverType KF_User_Type 接收人类型
receiverId string 接收人标志
mediaId string 图片的mediaId
timeOut int 代理请求超时时间(毫秒)
return Task

SendText() public static method

发送文本信息
public static SendText ( string accessToken, KF_User_Type senderType, string senderId, KF_User_Type receiverType, string receiverId, string content, int timeOut = Config.TIME_OUT ) : QyJsonResult
accessToken string 调用接口凭证
senderType KF_User_Type 发送人类型
senderId string 发送人标志
receiverType KF_User_Type 接收人类型
receiverId string 接收人标志
content string 消息内容
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.QyJsonResult

SendTextAsync() public static method

【异步方法】发送文本信息
public static SendTextAsync ( string accessToken, KF_User_Type senderType, string senderId, KF_User_Type receiverType, string receiverId, string content, int timeOut = Config.TIME_OUT ) : Task
accessToken string 调用接口凭证
senderType KF_User_Type 发送人类型
senderId string 发送人标志
receiverType KF_User_Type 接收人类型
receiverId string 接收人标志
content string 消息内容
timeOut int 代理请求超时时间(毫秒)
return Task

SendVoice() public static method

发送语音信息
public static SendVoice ( string accessToken, KF_User_Type senderType, string senderId, KF_User_Type receiverType, string receiverId, string mediaId, int timeOut = Config.TIME_OUT ) : QyJsonResult
accessToken string 调用接口凭证
senderType KF_User_Type 发送人类型
senderId string 发送人标志
receiverType KF_User_Type 接收人类型
receiverId string 接收人标志
mediaId string 语音的mediaId
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.QyJsonResult

SendVoiceAsync() public static method

【异步方法】发送语音信息
public static SendVoiceAsync ( string accessToken, KF_User_Type senderType, string senderId, KF_User_Type receiverType, string receiverId, string mediaId, int timeOut = Config.TIME_OUT ) : Task
accessToken string 调用接口凭证
senderType KF_User_Type 发送人类型
senderId string 发送人标志
receiverType KF_User_Type 接收人类型
receiverId string 接收人标志
mediaId string 语音的mediaId
timeOut int 代理请求超时时间(毫秒)
return Task