/** * /v1/sms/multi_send.json * * @param param * @return */ public Result <List <SmsSingleSend> > MultiSendV1(Dictionary <string, string> param) { var r = new Result <List <SmsSingleSend> >(); r = CheckParam(ref param, r, Const.Apikey, Const.Mobile, Const.Text); if (!r.IsSucc()) { return(r); } var data = UrlEncode(ref param); Version = Const.VersionV1; var h = new SimpleListResultHandler <SmsSingleSend>(Version); try { Path = "multi_send.json"; return(Post(ref data, h, r)); } catch (Exception e) { return(h.CatchExceptoin(e, r)); } }
/** * <h1>取默认模板</h1> * <p> * 参数名 类型 是否必须 描述 示例 * </p> * <p> * apikey String 是 用户唯一标识 9b11127a9701975c734b8aee81ee3526 * </p> * <p> * tpl_id Long 否 模板id,64位长整形。指定id时返回id对应的默认 模板。未指定时返回所有默认模板 1 * </p> * * @param param * tpl_id * @return */ public Result <List <Template> > GetDefault(Dictionary <string, string> param) { var r = new Result <List <Template> >(); r = CheckParam(ref param, r, Const.Apikey); if (!r.IsSucc()) { return(r); } var data = UrlEncode(ref param); var h = new SimpleListResultHandler <Template>(Version); try { Path = "get_default.json"; return(Post(ref data, h, r)); } catch (Exception e) { return(h.CatchExceptoin(e, r)); } }