C# 클래스 Senparc.Weixin.MP.AdvancedAPIs.CustomApi

客服接口
파일 보기 프로젝트 열기: JeffreySu/WeiXinMPSDK 1 사용 예제들

공개 메소드들

메소드 설명
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