C# Class Senparc.Weixin.MP.AdvancedAPIs.CustomApi

客服接口
ファイルを表示 Open project: JeffreySu/WeiXinMPSDK Class Usage Examples

Public Methods

Method Description
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

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

Method Details

SendCard() public static method

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
return WxJsonResult

SendImage() public static method

发送图片消息
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 客服
return WxJsonResult

SendImageAsync() public static method

【异步方法】发送图片消息
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 客服
return Task

SendMpNews() public static method

发送图文消息(点击跳转到图文消息页面) 图文消息条数限制在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 客服
return WxJsonResult

SendMpNewsAsync() public static method

【异步方法】发送图文消息(点击跳转到图文消息页面) 图文消息条数限制在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 客服
return Task

SendMusic() public static method

发送音乐消息
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 客服
return WxJsonResult

SendMusicAsync() public static method

【异步方法】发送音乐消息
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 客服
return Task

SendNews() public static method

发送图文消息
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 客服
return WxJsonResult

SendNewsAsync() public static method

【异步方法】发送图文消息
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 客服
return Task

SendText() public static method

发送文本信息
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 客服
return WxJsonResult

SendTextAsync() public static method

【异步方法】发送文本信息
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 客服
return Task

SendVideo() public static method

发送视频消息
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
return WxJsonResult

SendVideoAsync() public static method

【异步方法】发送视频消息
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
return Task

SendVoice() public static method

发送语音消息
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
return WxJsonResult

SendVoiceAsync() public static method

【异步方法】发送语音消息
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
return Task