예제 #1
0
 public static WeixinResult Delete(long templateId)
 {
     string url = WeUtil.GetUrl(WeShopConst.DELETE_TEMPLATE_URL);
     WeTemplateId request = new WeTemplateId(templateId);
     var result = WeUtil.PostToUri(url, request.WriteJson(), new WeixinResult());
     return result;
 }
예제 #2
0
        public static WeDeliveryTemplate Query(long templateId)
        {
            WeTemplateId request  = new WeTemplateId(templateId);
            string       url      = WeUtil.GetUrl(WeShopConst.TEMPLATE_ID_URL);
            var          response = WeUtil.PostToUri(url, request.WriteJson(), new WeTemplateInfo());

            return(response.TemplateInfo);
        }
예제 #3
0
        public static WeixinResult Delete(long templateId)
        {
            string       url     = WeUtil.GetUrl(WeShopConst.DELETE_TEMPLATE_URL);
            WeTemplateId request = new WeTemplateId(templateId);
            var          result  = WeUtil.PostToUri(url, request.WriteJson(), new WeixinResult());

            return(result);
        }
예제 #4
0
 public static WeDeliveryTemplate Query(long templateId)
 {
     WeTemplateId request = new WeTemplateId(templateId);
     string url = WeUtil.GetUrl(WeShopConst.TEMPLATE_ID_URL);
     var response = WeUtil.PostToUri(url, request.WriteJson(), new WeTemplateInfo());
     return response.TemplateInfo;
 }