| | |
| | | public string ErrorMessage { get; set; } |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 发送订阅消息 |
| | | /// </summary> |
| | | public class SendRequest |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 小程序编号 |
| | | /// </summary> |
| | | [JsonProperty("WxmpCode")] |
| | | [Required] |
| | | public string WxmpCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 要打开的小程序版本。正式版为 "release",体验版为 "trial",开发版为 "develop"。默认是正式版。 |
| | | /// </summary> |
| | | [JsonProperty("env_version")] |
| | | public string EnvVersion { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 所需下发的订阅模板id |
| | | /// </summary> |
| | | [JsonProperty("Template_id")] |
| | | [Required] |
| | | public string Template_id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 点击模板卡片后的跳转页面,仅限本小程序内的页面。支持带参数,(示例index?foo=bar)。该字段不填则模板无跳转 |
| | | /// </summary> |
| | | [JsonProperty("Page")] |
| | | [Required] |
| | | public string Page { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 接收者(用户)的 openid |
| | | /// </summary> |
| | | [JsonProperty("Touser")] |
| | | [Required] |
| | | public string Touser { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 模板内容,格式形如{ "phrase3": { "value": "审核通过" }, "name1": { "value": "订阅" }, "date2": { "value": "2019-12-25 09:42" } } |
| | | /// </summary> |
| | | [JsonProperty("Data")] |
| | | [Required] |
| | | public object Data { get; set; } |
| | | |
| | | [JsonProperty("跳转小程序类型:developer为开发版;trial为体验版;formal为正式版;默认为正式版")] |
| | | [Required] |
| | | public string Miniprogram_state { get; set; } |
| | | |
| | | [JsonProperty("进入小程序查看”的语言类型,支持zh_CN(简体中文)、en_US(英文)、zh_HK(繁体中文)、zh_TW(繁体中文),默认为zh_CN")] |
| | | [Required] |
| | | public string Lang { get; set; } |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 发送订阅消息-结果 |
| | | /// </summary> |
| | | public class SendResponse |
| | | { |
| | | [JsonProperty("ErrorCode")] |
| | | public int ErrorCode { get; set; } |
| | | |
| | | [JsonProperty("errmsg")] |
| | | public int errmsg { get; set; } |
| | | } |
| | | } |