C# Класс Senparc.Weixin.MP.AdvancedAPIs.CustomApi

客服接口
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
SendCard ( string accessTokenOrAppId, string openId, string cardId, CardExt cardExt, int timeOut = Config.TIME_OUT ) : WxJsonResult
SendImage ( string accessTokenOrAppId, string openId, string mediaId, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : WxJsonResult

发送图片消息

SendImageAsync ( string accessTokenOrAppId, string openId, string mediaId, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : Task

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

SendMpNews ( string accessTokenOrAppId, string openId, string mediaId, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : WxJsonResult

发送图文消息(点击跳转到图文消息页面) 图文消息条数限制在8条以内,注意,如果图文数超过8,则将会无响应。

SendMpNewsAsync ( string accessTokenOrAppId, string openId, string mediaId, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : Task

【异步方法】发送图文消息(点击跳转到图文消息页面) 图文消息条数限制在8条以内,注意,如果图文数超过8,则将会无响应。

SendMusic ( string accessTokenOrAppId, string openId, string title, string description, string musicUrl, string hqMusicUrl, string thumbMediaId, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : WxJsonResult

发送音乐消息

SendMusicAsync ( string accessTokenOrAppId, string openId, string title, string description, string musicUrl, string hqMusicUrl, string thumbMediaId, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : Task

【异步方法】发送音乐消息

SendNews ( string accessTokenOrAppId, string openId, List
articles, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : WxJsonResult

发送图文消息

SendNewsAsync ( string accessTokenOrAppId, string openId, List
articles, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : Task

【异步方法】发送图文消息

SendText ( string accessTokenOrAppId, string openId, string content, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : WxJsonResult

发送文本信息

SendTextAsync ( string accessTokenOrAppId, string openId, string content, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : Task

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

SendVideo ( string accessTokenOrAppId, string openId, string mediaId, string title, string description, int timeOut = Config.TIME_OUT, string kfAccount = "", string thumb_media_id = "" ) : WxJsonResult

发送视频消息

SendVideoAsync ( string accessTokenOrAppId, string openId, string mediaId, string title, string description, int timeOut = Config.TIME_OUT, string kfAccount = "", string thumb_media_id = "" ) : Task

【异步方法】发送视频消息

SendVoice ( string accessTokenOrAppId, string openId, string mediaId, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : WxJsonResult

发送语音消息

SendVoiceAsync ( string accessTokenOrAppId, string openId, string mediaId, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : Task

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

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

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

public static SendCard ( string accessTokenOrAppId, string openId, string cardId, CardExt cardExt, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
openId string
cardId string
cardExt CardExt
timeOut int
Результат WxJsonResult

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

发送图片消息
public static SendImage ( string accessTokenOrAppId, string openId, string mediaId, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : WxJsonResult
accessTokenOrAppId string
openId string
mediaId string
timeOut int 代理请求超时时间(毫秒)
kfAccount string 客服
Результат WxJsonResult

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

【异步方法】发送图片消息
public static SendImageAsync ( string accessTokenOrAppId, string openId, string mediaId, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : Task
accessTokenOrAppId string
openId string
mediaId string
timeOut int 代理请求超时时间(毫秒)
kfAccount string 客服
Результат Task

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

发送图文消息(点击跳转到图文消息页面) 图文消息条数限制在8条以内,注意,如果图文数超过8,则将会无响应。
public static SendMpNews ( string accessTokenOrAppId, string openId, string mediaId, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : WxJsonResult
accessTokenOrAppId string
openId string
mediaId string
timeOut int
kfAccount string 客服
Результат WxJsonResult

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

【异步方法】发送图文消息(点击跳转到图文消息页面) 图文消息条数限制在8条以内,注意,如果图文数超过8,则将会无响应。
public static SendMpNewsAsync ( string accessTokenOrAppId, string openId, string mediaId, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : Task
accessTokenOrAppId string
openId string
mediaId string
timeOut int
kfAccount string 客服
Результат Task

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

发送音乐消息
public static SendMusic ( string accessTokenOrAppId, string openId, string title, string description, string musicUrl, string hqMusicUrl, string thumbMediaId, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : WxJsonResult
accessTokenOrAppId string
openId string
title string 音乐标题(非必须)
description string 音乐描述(非必须)
musicUrl string 音乐链接
hqMusicUrl string 高品质音乐链接,wifi环境优先使用该链接播放音乐
thumbMediaId string 视频缩略图的媒体ID
timeOut int 代理请求超时时间(毫秒)
kfAccount string 客服
Результат WxJsonResult

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

【异步方法】发送音乐消息
public static SendMusicAsync ( string accessTokenOrAppId, string openId, string title, string description, string musicUrl, string hqMusicUrl, string thumbMediaId, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : Task
accessTokenOrAppId string
openId string
title string 音乐标题(非必须)
description string 音乐描述(非必须)
musicUrl string 音乐链接
hqMusicUrl string 高品质音乐链接,wifi环境优先使用该链接播放音乐
thumbMediaId string 视频缩略图的媒体ID
timeOut int 代理请求超时时间(毫秒)
kfAccount string 客服
Результат Task

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

发送图文消息
public static SendNews ( string accessTokenOrAppId, string openId, List
articles, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : WxJsonResult
accessTokenOrAppId string
openId string
articles List
timeOut int 代理请求超时时间(毫秒)
kfAccount string 客服
Результат WxJsonResult

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

【异步方法】发送图文消息
public static SendNewsAsync ( string accessTokenOrAppId, string openId, List
articles, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : Task
accessTokenOrAppId string
openId string
articles List
timeOut int 代理请求超时时间(毫秒)
kfAccount string 客服
Результат Task

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

发送文本信息
public static SendText ( string accessTokenOrAppId, string openId, string content, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : WxJsonResult
accessTokenOrAppId string
openId string
content string
timeOut int 代理请求超时时间(毫秒)
kfAccount string 客服
Результат WxJsonResult

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

【异步方法】发送文本信息
public static SendTextAsync ( string accessTokenOrAppId, string openId, string content, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : Task
accessTokenOrAppId string
openId string
content string
timeOut int 代理请求超时时间(毫秒)
kfAccount string 客服
Результат Task

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

发送视频消息
public static SendVideo ( string accessTokenOrAppId, string openId, string mediaId, string title, string description, int timeOut = Config.TIME_OUT, string kfAccount = "", string thumb_media_id = "" ) : WxJsonResult
accessTokenOrAppId string
openId string
mediaId string
title string
description string
timeOut int 代理请求超时时间(毫秒)
kfAccount string 客服
thumb_media_id string
Результат WxJsonResult

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

【异步方法】发送视频消息
public static SendVideoAsync ( string accessTokenOrAppId, string openId, string mediaId, string title, string description, int timeOut = Config.TIME_OUT, string kfAccount = "", string thumb_media_id = "" ) : Task
accessTokenOrAppId string
openId string
mediaId string
title string
description string
timeOut int 代理请求超时时间(毫秒)
kfAccount string 客服
thumb_media_id string
Результат Task

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

发送语音消息
public static SendVoice ( string accessTokenOrAppId, string openId, string mediaId, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : WxJsonResult
accessTokenOrAppId string
openId string
mediaId string
timeOut int 代理请求超时时间(毫秒)
kfAccount string
Результат WxJsonResult

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

【异步方法】发送语音消息
public static SendVoiceAsync ( string accessTokenOrAppId, string openId, string mediaId, int timeOut = Config.TIME_OUT, string kfAccount = "" ) : Task
accessTokenOrAppId string
openId string
mediaId string
timeOut int 代理请求超时时间(毫秒)
kfAccount string
Результат Task