Ejemplo n.º 1
0
        public Result multiSend(Dictionary <string, string> parms)
        {
            parms.Add("apikey", config.apikey);
            string text = parms["text"];

            string[]      textArr = text.Split(',');
            StringBuilder sb      = new StringBuilder();

            foreach (var s in textArr)
            {
                if (sb.Length != 0)
                {
                    sb.Append(",");
                }
                sb.Append(HttpUtility.UrlEncode(s));
            }
            parms["text"] = sb.ToString();
            return(HttpUtil.HttpPost(Config.url_send_multi_sms, parms));
        }
Ejemplo n.º 2
0
 public Result tplBatchSend(Dictionary <string, string> parms)
 {
     parms.Add("apikey", config.apikey);
     return(HttpUtil.HttpPost(Config.url_send_tpl_batch_sms, parms));
 }
Ejemplo n.º 3
0
 public Result pullStatus(Dictionary <string, string> parms)
 {
     parms.Add("apikey", config.apikey);
     return(HttpUtil.HttpPost(Config.url_pull_flow_status, parms));
 }
Ejemplo n.º 4
0
 public Result singleSend(Dictionary <string, string> parms)
 {
     parms.Add("apikey", config.apikey);
     return(HttpUtil.HttpPost(Config.url_send_single_sms, parms));
 }
Ejemplo n.º 5
0
 public Result recharge(Dictionary <string, string> parms)
 {
     parms.Add("apikey", config.apikey);
     return(HttpUtil.HttpPost(Config.url_recharge_flow, parms));
 }
Ejemplo n.º 6
0
 public Result getPackage(Dictionary <string, string> parms)
 {
     parms.Add("apikey", config.apikey);
     return(HttpUtil.HttpPost(Config.url_get_flow_package, parms));
 }
 public Result set(Dictionary <string, string> parms)
 {
     parms.Add("apikey", config.apikey);
     return(HttpUtil.HttpPost(Config.url_set_user, parms));
 }
Ejemplo n.º 8
0
 public Result del(Dictionary <string, string> parms)
 {
     parms.Add("apikey", config.apikey);
     return(HttpUtil.HttpPost(Config.url_del_tpl, parms));
 }
Ejemplo n.º 9
0
 public Result getDefault(Dictionary <string, string> parms)
 {
     parms.Add("apikey", config.apikey);
     return(HttpUtil.HttpPost(Config.url_get_default_tpl, parms));
 }