public long Send()
        {
            string url = WeUtil.GetUrl(WeConst.TEMPLATE_MESSAGE_URL);

            TemplateMessageResult result = new TemplateMessageResult();
            result = WeUtil.PostToUri(url, this.WriteJson(), result);
            if (result.IsError)
                return -1L;
            return result.MsgId;
        }
Beispiel #2
0
        public long Send()
        {
            string url = WeUtil.GetUrl(WeConst.TEMPLATE_MESSAGE_URL);

            TemplateMessageResult result = new TemplateMessageResult();

            result = WeUtil.PostToUri(url, this.WriteJson(), result);
            if (result.IsError)
            {
                return(-1L);
            }
            return(result.MsgId);
        }