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)
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)
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)
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)
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)