Example #1
0
	def sendSMS(self, text, toNum):
		sms = SMS()
		sms.text = text
		sms.toNum = toNum
		#sms.gateway = "PoslatSMS.cz"
		#sms.gateway = "O2 CZ"
		sms.gateway = 3
		#sms.gateway = "smszdarma.org"
		self.freeSms.sendSMS(sms)
Example #2
0
	def startMainLoop(self):
		sms = SMS()
		sms.gateway = int(raw_input("Please type ID of the gateway: "))
		sms.toNum = raw_input("Please type the recipient number: ")
		sms.text = raw_input("Please write SMS text: ")
		self.freeSms.sendSMS(sms)