Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def send(text, number = '447909547990'):

	username = "aquarion"
	password = "[INSERT PASSWORD]"

	message = urllib.quote(text)
	url = "http://www.bulksms.co.uk:5567/eapi/submission/send_sms/1/current?username=%s&password=%s&message=%s&msisdn=%s&msg_class=2" % (username, password, message, number)
	fp = urllib.urlopen(url)
	response = fp.read(1024)
	fp.close()
	
	logp = open('/tmp/smsthis.txt', 'a')
	logp.write('Response: %s Message %s' % (response, message))
	logp.close()
        


src/l/a/lampstand-HEAD/lampstand.py   lampstand(Download)
	def clientConnectionLost(self, connector, reason):
		"""If we get disconnected, reconnect to server."""
		sms.send('Lampstand: HAZ NO CONEXON')
		#Todo: Implement backoff
		time.sleep(45) # Our very own fourty five second claim.