Example #1
0
 def fetch_inbox(self, last_received_id=0):
     logger.debug('fetch_inbox')
     params = {
         'username': self.username,
         'lastReceivedId': last_received_id
     }
     return util.http_connect(util.GET, params, self.api_key)
Example #2
0
 def sms(self, to, message, frm='2122', bulkSMSMode=1):
     logger.debug("Sending message [ %s ] to: [%s]." % (message, to))
     params = {
         'to': to,
         'message': message,
         'username': self.username,
         'from': frm,
         'bulkSMSMode': bulkSMSMode
     }
     return util.http_connect(util.POST, params, self.api_key)
Example #3
0
	def fetch_inbox(self, last_received_id = 0):
		logger.debug('fetch_inbox')
		params = {'username':self.username,'lastReceivedId':last_received_id}
		return util.http_connect(util.GET, params, self.api_key)
Example #4
0
	def sms(self, to, message,frm ='2122', bulkSMSMode=1):
		logger.debug("Sending message [ %s ] to: [%s]." %(message, to))
		params = {'to': to, 'message':message, 'username':self.username, 'from':frm, 'bulkSMSMode':bulkSMSMode }
		return util.http_connect(util.POST, params, self.api_key)
Example #5
0
	def fetch_inbox(self, last_received_id = 0):
		print "Fetching Inbox."
		params = {'username':self.username,'lastReceivedId':last_received_id}
		return util.http_connect(util.GET, params, self.api_key)