Пример #1
0
        //Extensions:
        private static void SUBMITSMSRegEx(this SendSMSSoapClient obj, string phoneNumber, string msg)
        {
            string xml = SMSSender.GenerateRegXML(new List <string>()
            {
                phoneNumber
            }, msg);

            obj.SUBMITSMS(xml);
        }
Пример #2
0
        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
                       , ""));
        }
Пример #3
0
        private static void SUBMITSMSPerEx(this SendSMSSoapClient obj, Dictionary <string, string> data)
        {
            string xml = SMSSender.GeneratePerXML(data);

            obj.SUBMITSMS(xml);
        }
Пример #4
0
        private static void SUBMITSMSRegManyEx(this SendSMSSoapClient obj, List <string> phoneNumbers, string msg)
        {
            string xml = SMSSender.GenerateRegXML(phoneNumbers, msg);

            obj.SUBMITSMS(xml);
        }