//Extensions: private static void SUBMITSMSRegEx(this SendSMSSoapClient obj, string phoneNumber, string msg) { string xml = SMSSender.GenerateRegXML(new List <string>() { phoneNumber }, msg); obj.SUBMITSMS(xml); }
public static int SendSms(string ToNumber, string MessageText) { string apiKey = ConfigurationManager.AppSettings["ParsGreenApiKey"]; string sendNumber = ConfigurationManager.AppSettings["ParsGreenSendNumber"]; SendSMSSoapClient service = new SendSMSSoapClient(); return(service.SendGroupSmsSimple( apiKey , sendNumber , new ArrayOfString() { ToNumber }, MessageText , false , "")); }
private static void SUBMITSMSPerEx(this SendSMSSoapClient obj, Dictionary <string, string> data) { string xml = SMSSender.GeneratePerXML(data); obj.SUBMITSMS(xml); }
private static void SUBMITSMSRegManyEx(this SendSMSSoapClient obj, List <string> phoneNumbers, string msg) { string xml = SMSSender.GenerateRegXML(phoneNumbers, msg); obj.SUBMITSMS(xml); }