from smsapi import SmsApi def send_sms(phone, cod): username = "******" password = "******" sms = SmsApi(username, password) sms = sms.send_sms(recipient="48123456789",sender_name="SENDER", message="MESSAGE",eco=False,) print sms
from smsapi import SmsApi apikey = "675031xxxxxxxxxxxx" sender = "SEDEMO" sms = SmsApi(apikey, sender) # Send SMS message to 902000xxxx - fill sender field "SENDER" and message with "MESSAGE" sms = sms.send_sms(recipient="91902000xxxx", message="Hello, This is a test message from spring edge")
def notify(self, title, text, url=False): """Send email notification using SMTP""" body = text + ' - ' + url sms = SmsApi(self.smsapi_username, self.smsapi_password) sms.send_sms(body, recipient=self.smsapi_recipient) _logger.info("SMSAPI sent: [%s] %s" % (self.smsapi_recipient, body))
def notify(self, title, text, url=False): """Send sms notification using smsapi.pl""" body = text + ' - ' + url sms = SmsApi(self.smsapi_username, self.smsapi_password) sms.send_sms(body, recipient=self.smsapi_recipient) _logger.info("SMSAPI sent: [%s] %s" % (self.smsapi_recipient, body))