Exemplo n.º 1
0
        public bool CreateSmsCode()
        {
            swi        = new Communications();
            swi.APIkey = APIkey;
            swi.APIUrl = APIUrl;

            swi.MakeAnSmsProfile(Utility.Truncate(SMSmessageText, 140), DefaultLanguage);
            bool rslt = swi.CreateCustomSmsMessage(SMScampaignName, SmsFromName);

            if (rslt)
            {
                SmsCode     = swi.SmsCode;
                SmsJsonData = swi.JsonData;
            }
            else
            {
                isError      = swi.isError;
                ErrorMessage = swi.errorMessage;
            }
            return(rslt);
        }