C# Класс Senparc.Weixin.QY.AdvancedAPIs.KFApi

发送消息
Показать файл Открыть проект

Открытые методы

Метод Описание
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

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

Описание методов

GetKFList() публичный статический Метод

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

GetKFListAsync() публичный статический Метод

获取客服列表
public static GetKFListAsync ( string accessToken, KF_Type type = null, int timeOut = Config.TIME_OUT ) : Task
accessToken string
type KF_Type 不填时,同时返回内部、外部客服列表
timeOut int
Результат Task

SendFile() публичный статический Метод

发送文件信息
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 代理请求超时时间(毫秒)
Результат Senparc.Weixin.Entities.QyJsonResult

SendFileAsync() публичный статический Метод

【异步方法】发送文件信息
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 代理请求超时时间(毫秒)
Результат Task

SendImage() публичный статический Метод

发送图片信息
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 代理请求超时时间(毫秒)
Результат Senparc.Weixin.Entities.QyJsonResult

SendImageAsync() публичный статический Метод

【异步方法】发送图片信息
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 代理请求超时时间(毫秒)
Результат Task

SendText() публичный статический Метод

发送文本信息
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 代理请求超时时间(毫秒)
Результат Senparc.Weixin.Entities.QyJsonResult

SendTextAsync() публичный статический Метод

【异步方法】发送文本信息
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 代理请求超时时间(毫秒)
Результат Task

SendVoice() публичный статический Метод

发送语音信息
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 代理请求超时时间(毫秒)
Результат Senparc.Weixin.Entities.QyJsonResult

SendVoiceAsync() публичный статический Метод

【异步方法】发送语音信息
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 代理请求超时时间(毫秒)
Результат Task