88 } |
88 } |
89 '''dict for standrd values of the smstrade api, it is used to get the right values to the API.''' |
89 '''dict for standrd values of the smstrade api, it is used to get the right values to the API.''' |
90 |
90 |
91 def __init__(self, name): |
91 def __init__(self, name): |
92 self.url = "https://gateway.smstrade.de" |
92 self.url = "https://gateway.smstrade.de" |
93 Provider.__init__(self, name, {"sms":["basic","economy","gold","direct"]}) |
93 options =[("key", Option(lambda x,y:x,long="smstrade Gateway Key https://login.smstrade.de/index.php?gateway", must=True)),] |
94 self.options.update({ |
94 Provider.__init__(self, name, {"sms":["basic","economy","gold","direct"]},options) |
95 "key":Option(lambda x,y:x,long="smstrade Gateway Key https://login.smstrade.de/index.php?gateway", must=True) |
|
96 }) |
|
97 self.order.append("key") |
|
98 |
95 |
99 def send(self, route, recipient, sms): |
96 def send(self, route, recipient, sms): |
100 """send on SMS to recipients via route |
97 """send on SMS to recipients via route |
101 |
98 |
102 :param string route: A valid route ``["basic", "economy", "gold", "direct"]`` |
99 :param string route: A valid route ``["basic", "economy", "gold", "direct"]`` |