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

模板消息接口
Afficher le fichier Open project: JeffreySu/WeiXinMPSDK

Méthodes publiques

Méthode Description
Addtemplate ( string accessTokenOrAppId, string template_id_short, int timeOut = Config.TIME_OUT ) : Senparc.Weixin.MP.AdvancedAPIs.TemplateMessage.AddtemplateJsonResult

获得模板ID

AddtemplateAsync ( string accessTokenOrAppId, string template_id_short, int timeOut = Config.TIME_OUT ) : Task

【异步方法】获得模板ID

DelPrivateTemplate ( string accessTokenOrAppId, string template_id, int timeOut = Config.TIME_OUT ) : WxJsonResult

删除模板

DelPrivateTemplateAsync ( string accessTokenOrAppId, string template_id, int timeOut = Config.TIME_OUT ) : Task

【异步方法】删除模板

GetIndustry ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : Senparc.Weixin.MP.AdvancedAPIs.TemplateMessage.GetIndustryJsonResult

获取设置的行业信息

GetIndustryAsync ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : Task

【异步方法】获取设置的行业信息

GetPrivateTemplate ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : GetPrivateTemplateJsonResult

获取模板列表

GetPrivateTemplateAsync ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : Task

【异步办法】 获取模板列表

SendTemplateMessage ( string accessTokenOrAppId, string openId, string templateId, string url, object data, int timeOut = Config.TIME_OUT ) : SendTemplateMessageResult

模板消息接口

SendTemplateMessageAsync ( string accessTokenOrAppId, string openId, string templateId, string url, object data, int timeOut = Config.TIME_OUT ) : Task

【异步方法】模板消息接口

SetIndustry ( string accessTokenOrAppId, IndustryCode industry_id1, IndustryCode industry_id2, int timeOut = Config.TIME_OUT ) : WxJsonResult

设置所属行业

SetIndustryAsync ( string accessTokenOrAppId, IndustryCode industry_id1, IndustryCode industry_id2, int timeOut = Config.TIME_OUT ) : Task

【异步方法】设置所属行业

Method Details

Addtemplate() public static méthode

获得模板ID
public static Addtemplate ( string accessTokenOrAppId, string template_id_short, int timeOut = Config.TIME_OUT ) : Senparc.Weixin.MP.AdvancedAPIs.TemplateMessage.AddtemplateJsonResult
accessTokenOrAppId string
template_id_short string 模板库中模板的编号,有“TM**”和“OPENTMTM**”等形式
timeOut int
Résultat Senparc.Weixin.MP.AdvancedAPIs.TemplateMessage.AddtemplateJsonResult

AddtemplateAsync() public static méthode

【异步方法】获得模板ID
public static AddtemplateAsync ( string accessTokenOrAppId, string template_id_short, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
template_id_short string 模板库中模板的编号,有“TM**”和“OPENTMTM**”等形式
timeOut int
Résultat Task

DelPrivateTemplate() public static méthode

删除模板
public static DelPrivateTemplate ( string accessTokenOrAppId, string template_id, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
template_id string 公众帐号下模板消息ID
timeOut int
Résultat Senparc.Weixin.Entities.WxJsonResult

DelPrivateTemplateAsync() public static méthode

【异步方法】删除模板
public static DelPrivateTemplateAsync ( string accessTokenOrAppId, string template_id, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
template_id string 公众帐号下模板消息ID
timeOut int
Résultat Task

GetIndustry() public static méthode

获取设置的行业信息
public static GetIndustry ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : Senparc.Weixin.MP.AdvancedAPIs.TemplateMessage.GetIndustryJsonResult
accessTokenOrAppId string
timeOut int
Résultat Senparc.Weixin.MP.AdvancedAPIs.TemplateMessage.GetIndustryJsonResult

GetIndustryAsync() public static méthode

【异步方法】获取设置的行业信息
public static GetIndustryAsync ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
timeOut int
Résultat Task

GetPrivateTemplate() public static méthode

获取模板列表
public static GetPrivateTemplate ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : GetPrivateTemplateJsonResult
accessTokenOrAppId string
timeOut int
Résultat GetPrivateTemplateJsonResult

GetPrivateTemplateAsync() public static méthode

【异步办法】 获取模板列表
public static GetPrivateTemplateAsync ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
timeOut int
Résultat Task

SendTemplateMessage() public static méthode

模板消息接口
public static SendTemplateMessage ( string accessTokenOrAppId, string openId, string templateId, string url, object data, int timeOut = Config.TIME_OUT ) : SendTemplateMessageResult
accessTokenOrAppId string
openId string
templateId string
url string
data object
timeOut int 代理请求超时时间(毫秒)
Résultat SendTemplateMessageResult

SendTemplateMessageAsync() public static méthode

【异步方法】模板消息接口
public static SendTemplateMessageAsync ( string accessTokenOrAppId, string openId, string templateId, string url, object data, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
openId string
templateId string
url string
data object
timeOut int 代理请求超时时间(毫秒)
Résultat Task

SetIndustry() public static méthode

设置所属行业
public static SetIndustry ( string accessTokenOrAppId, IndustryCode industry_id1, IndustryCode industry_id2, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
industry_id1 IndustryCode 公众号模板消息所属行业编号
industry_id2 IndustryCode 公众号模板消息所属行业编号
timeOut int
Résultat Senparc.Weixin.Entities.WxJsonResult

SetIndustryAsync() public static méthode

【异步方法】设置所属行业
public static SetIndustryAsync ( string accessTokenOrAppId, IndustryCode industry_id1, IndustryCode industry_id2, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
industry_id1 IndustryCode 公众号模板消息所属行业编号
industry_id2 IndustryCode 公众号模板消息所属行业编号
timeOut int
Résultat Task