public static void SendCustomTemplateMessage(string message) { string rawUrl = "https://api.weixin.qq.com/cgi-bin/message/template/send?"; WechatApi.PostWechatApiWithToken <WechatApiTemplateResponseMessage>(rawUrl, message); }
/// <summary> /// 调用客服接口向用户推送消息 /// </summary> /// <param name="message"></param> /// <returns></returns> public static void SendCustomMessage(CustomMessage message) { string rawUrl = "https://api.weixin.qq.com/cgi-bin/message/custom/send?"; WechatApi.PostWechatApiWithToken <WechatApiResponseMessage>(rawUrl, message); }