def send_sms(self, number="", message=""): print('topkek {0!r}'.format(self.request)) date_str = datetime.strftime(datetime.now(), "%d/%m/%y %H:%M") md5 = hashlib.md5() md5.update(number + date_str) h = md5.hexdigest() r = chikka.send_sms(number, message, h) print('kek {0!r}'.format(r.json()))
def send_notification(self, number="", message="", message_id=""): chikka.send_sms(number, message, message_id)