92 self.url = "https://gateway.smstrade.de" |
92 self.url = "https://gateway.smstrade.de" |
93 options =[("key", Option(lambda x,y:x,long="smstrade Gateway Key https://login.smstrade.de/index.php?gateway", must=True)),] |
93 options =[("key", Option(lambda x,y:x,long="smstrade Gateway Key https://login.smstrade.de/index.php?gateway", must=True)),] |
94 Provider.__init__(self, name, {"sms":["basic","economy","gold","direct"]},options) |
94 Provider.__init__(self, name, {"sms":["basic","economy","gold","direct"]},options) |
95 |
95 |
96 def send(self, route, recipient, sms): |
96 def send(self, route, recipient, sms): |
97 """send on SMS to recipients via route |
97 """send one SMS to recipient via route |
98 |
98 |
99 :param string route: A valid route ``["basic", "economy", "gold", "direct"]`` |
99 :param string route: A valid route ``["basic", "economy", "gold", "direct"]`` |
100 :param string recipient: Mobilenumber of recipient |
100 :param `iro.telnumber.Telnumber` recipient: Mobilenumber of recipient |
101 :param `iro.model.message.SMS` sms: the sms to send |
101 :param `iro.model.message.SMS` sms: the sms to send |
102 :return: |
102 :return: |
103 - All went ok -- :class:`iro.model.status.Status` object |
103 - All went ok -- :class:`iro.model.status.Status` object |
104 - otherwise -- an exception |
104 - otherwise -- an exception |
105 """ |
105 """ |