17 <body> |
17 <body> |
18 <div id="head-container"> |
18 <div id="head-container"> |
19 <div id="head"> |
19 <div id="head"> |
20 <h1 id="logo"><a href="index.html" class="logo" title="Netzguerilla"><span>Netzguerilla</span></a></h1> |
20 <h1 id="logo"><a href="index.html" class="logo" title="Netzguerilla"><span>Netzguerilla</span></a></h1> |
21 <ul id="menu"> |
21 <ul id="menu"> |
22 <li><a href="index.html" class="menu">Iro</a></li><li><a href="current.html" class="menu active">API Documentation</a></li><li><a href="new.html" class="menu">geplante API Documentation</a></li><li><a href="database.html" class="menu">Datenbank Schema</a></li><li><a href="impressum.html" class="menu">Impressum</a></li> |
22 <li><a href="index.html" class="menu">Iro</a></li><li><a href="current.html" class="menu active">API Documentation</a></li><li><a href="database.html" class="menu">Datenbase Schema</a></li><li><a href="about.html" class="menu">About us</a></li> |
23 </ul> |
23 </ul> |
24 </div> |
24 </div> |
25 </div> |
25 </div> |
26 <div id="content-container"> |
26 <div id="content-container"> |
27 <div id="content" class="container_12"> |
27 <div id="content" class="container_12"> |
28 <div id="main" class="grid_9"> |
28 <div id="main" class="grid_9"> |
29 <h2>API Dokumentation</h2> |
29 <h2>API Documentation</h2> |
30 <div class="item"> |
30 <div class="item"> |
31 <p> |
31 <p> |
32 </p> |
32 </p> |
33 <ol> |
33 <ol> |
34 <li value="1">1. <a href="#api-intro">Einführung</a></li> |
34 <li value="1">1. <a href="#api-intro">Intro</a></li> |
35 <li value="2">2. |
35 <li value="2">2. |
36 <a href="#api-interfaces">Interfaces</a> |
36 <a href="#api-interfaces">Interfaces</a> |
37 <ol> |
37 <ol> |
38 <li value="2.1">2.1 <a href="#interface-xmlrpc">XML-RPC</a></li> |
38 <li value="2.1">2.1 <a href="#interface-xmlrpc">XML-RPC</a></li> |
39 </ol> |
39 <li value="2.1">2.2 <a href="#interface-soap">SOAP</a></li> |
|
40 <li value="2.3">2.3 <a href="#interface-json">JSON</a></li> |
|
41 <li value="2.4">2.4 <a href="#interface-jsonp">JSONP</a></li> |
|
42 </ol> |
40 </li> |
43 </li> |
41 <li value="3">3. |
44 <li value="3">3. |
42 <a href="#api-methods">Methoden</a> |
45 <a href="#api-methods">Methods</a> |
43 <ol> |
46 <ol> |
44 <li value="3.1">3.1 <a href="#method-startSMS">StartSMS</a></li><li value="3.2">3.2 <a href="#method-startFAX">StartFAX</a></li><li value="3.3">3.3 <a href="#method-startMail">StartMail</a></li><li value="3.4">3.4 <a href="#method-status">Status</a></li><li value="3.5">3.5 <a href="#method-stop">Stop</a></li><li value="3.6">3.6 <a href="#method-getProvider">GetProvider</a></li><li value="3.7">3.7 <a href="#method-getDefaultProvider">GetDefaultProvider</a></li> |
47 <li value="3.1">3.1 <a href="#method-status">Status</a></li><li value="3.2">3.2 <a href="#method-sms">Sms</a></li><li value="3.3">3.3 <a href="#method-fax">Fax</a></li><li value="3.4">3.4 <a href="#method-mail">Mail</a></li><li value="3.5">3.5 <a href="#method-routes">Routes</a></li><li value="3.6">3.6 <a href="#method-defaultRoute">DefaultRoute</a></li><li value="3.7">3.7 <a href="#method-bill">Bill</a></li><li value="3.8">3.8 <a href="#method-telnumber">Telnumber</a></li><li value="3.9">3.9 <a href="#method-email">Email</a></li> |
45 </ol> |
48 </ol> |
46 </li> |
49 </li> |
47 </ol> |
50 </ol> |
48 </div><div class="item" id="api-intro"> |
51 </div><div class="item" id="api-intro"> |
49 <h3>Einführung</h3> |
52 <h3>Intro</h3> |
50 <p> |
53 <p> |
51 Die Iro API enthält Funktion, die für den Massenversand nützlich sind. |
54 Iro API has many methods, that are usefull if you want to send a bunch of messages. This Site describes the API for Iro 1.0. |
52 </p> |
55 </p> |
53 </div><div class="item" id="api-interfaces"> |
56 </div><div class="item" id="api-interfaces"> |
54 <h3>Interfaces</h3> |
57 <h3>Interfaces</h3> |
55 <p> |
58 <p> |
56 Die Iro API stellt zur Zeit nur ein Interfaces bereit. |
59 You can use diffrent interfaces to get to same result. |
57 </p> |
60 </p> |
58 <div class="item" id="interface-xmlrpc"> |
61 <div class="item" id="interface-xmlrpc"> |
59 <h4>XML-RPC</h4> |
62 <h4>XML-RPC</h4> |
60 <p> |
63 <p> |
61 Interface-URI: <code>https://<em><benutzer></em>:<em><passwort></em>@localhost:8000</code> |
64 Interface-URI: <code>http://localhost:8000/xmlrpc</code> |
|
65 </p> |
|
66 </div> |
|
67 <div class="item" id="interface-soap"> |
|
68 <h4>SOAP</h4> |
|
69 <p> |
|
70 Interface-URI: <code>http://localhost:8000/soap</code> |
|
71 </p> |
|
72 </div> |
|
73 <div class="item" id="interface-json"> |
|
74 <h4>JSON</h4> |
|
75 <p> |
|
76 Interface-URI: <code>http://localhost:8000/json/<em><methode></em></code> |
62 </p> |
77 </p> |
63 <p> |
78 <p> |
64 Die aufgerufene Methode wird dabei im <code><methodName /></code> übergeben. |
79 Not yet implementet |
|
80 </p> |
|
81 </div> |
|
82 <div class="item" id="interface-jsonp"> |
|
83 <h4>JSONP</h4> |
|
84 <p> |
|
85 Interface-URI: <code>http://localhost:8000/jsonp/<em><methode></em>?callback=<callback></code> |
|
86 </p> |
|
87 <p> |
|
88 Not yet implementet |
65 </p> |
89 </p> |
66 </div> |
90 </div> |
67 </div><div class="item" id="api-methods"> |
91 </div><div class="item" id="api-methods"> |
68 <h3>Methoden</h3> |
92 <h3>Methods</h3> |
69 <div class="item" id="method-startSMS"> |
93 <div class="item" id="method-status"> |
70 <h4>StartSMS</h4> |
94 <h4>Status</h4> |
71 <p><code>startSMS(message, recipients, provider='default')</code></p> |
95 <p><code>status(user=None, id=False, detailed=None)</code></p> |
72 <p>Versendet eine SMS.</p> |
96 <p>Returns the status of one or more jobs.</p> |
73 <h5>Parameter</h5> |
97 <h5>Parameter</h5> |
74 <table class="docs"> |
98 <table class="docs"> |
75 <thead> |
99 <thead> |
76 <tr> |
100 <tr> |
77 <td>Parameter</td> |
101 <td>parameter</td> |
78 <td>Typ</td> |
102 <td>type</td> |
79 <td>Beschreibung</td> |
103 <td>description</td> |
80 </tr> |
104 </tr> |
81 </thead> |
105 </thead> |
82 <tbody> |
106 <tbody> |
83 <tr> |
107 <tr> |
84 <td>message</td> |
108 <td>user</td> |
85 <td>string</td> |
109 <td>string</td> |
86 <td> Nachricht</td> |
110 <td>apikey of a user</td> |
87 </tr><tr> |
111 </tr><tr> |
88 <td>recipients</td> |
|
89 <td>list</td> |
|
90 <td> eine Liste von Emfänger-Nummern (gemäß ITU-T E.123)</td> |
|
91 </tr><tr> |
|
92 <td>provider</td> |
|
93 <td>string</td> |
|
94 <td> Provider über den geschickt werden soll</td> |
|
95 </tr> |
|
96 </tbody> |
|
97 </table> |
|
98 <h5>Ausgabe</h5> |
|
99 <table class="docs"> |
|
100 <thead> |
|
101 <tr> |
|
102 <td>Parameter</td> |
|
103 <td>Typ</td> |
|
104 <td>Beschreibung</td> |
|
105 </tr> |
|
106 </thead> |
|
107 <tbody> |
|
108 <tr> |
|
109 <td>id</td> |
112 <td>id</td> |
110 <td>hash</td> |
113 <td>integer</td> |
111 <td> Die ID des Auftrages</td> |
114 <td>one job id</td> |
112 </tr> |
|
113 </tbody> |
|
114 </table> |
|
115 </div><div class="item" id="method-startFAX"> |
|
116 <h4>StartFAX</h4> |
|
117 <p><code>startFAX(subject, fax, recipients, provider='default')</code></p> |
|
118 <p>Versendet ein FAX.</p> |
|
119 <h5>Parameter</h5> |
|
120 <table class="docs"> |
|
121 <thead> |
|
122 <tr> |
|
123 <td>Parameter</td> |
|
124 <td>Typ</td> |
|
125 <td>Beschreibung</td> |
|
126 </tr> |
|
127 </thead> |
|
128 <tbody> |
|
129 <tr> |
|
130 <td>subject</td> |
|
131 <td>string</td> |
|
132 <td> der Betreff</td> |
|
133 </tr><tr> |
|
134 <td>fax</td> |
|
135 <td>string</td> |
|
136 <td> das pdf base64 kodiert</td> |
|
137 </tr><tr> |
|
138 <td>recipients</td> |
|
139 <td>list</td> |
|
140 <td> eine Liste von Emfänger-Nummern (gemäß ITU-T E.123)</td> |
|
141 </tr><tr> |
|
142 <td>provider</td> |
|
143 <td>string</td> |
|
144 <td> Provider über den geschickt werden soll</td> |
|
145 </tr> |
|
146 </tbody> |
|
147 </table> |
|
148 <h5>Ausgabe</h5> |
|
149 <table class="docs"> |
|
150 <thead> |
|
151 <tr> |
|
152 <td>Parameter</td> |
|
153 <td>Typ</td> |
|
154 <td>Beschreibung</td> |
|
155 </tr> |
|
156 </thead> |
|
157 <tbody> |
|
158 <tr> |
|
159 <td>id</td> |
|
160 <td>hash</td> |
|
161 <td> Die ID des Auftrages</td> |
|
162 </tr> |
|
163 </tbody> |
|
164 </table> |
|
165 </div><div class="item" id="method-startMail"> |
|
166 <h4>StartMail</h4> |
|
167 <p><code>startMail(subject, body, recipients, frm, provider='default')</code></p> |
|
168 <p>Versendet eine Email.</p> |
|
169 <h5>Parameter</h5> |
|
170 <table class="docs"> |
|
171 <thead> |
|
172 <tr> |
|
173 <td>Parameter</td> |
|
174 <td>Typ</td> |
|
175 <td>Beschreibung</td> |
|
176 </tr> |
|
177 </thead> |
|
178 <tbody> |
|
179 <tr> |
|
180 <td>subject</td> |
|
181 <td>string</td> |
|
182 <td> der Betreff</td> |
|
183 </tr><tr> |
|
184 <td>body</td> |
|
185 <td>string</td> |
|
186 <td> der Email Body</td> |
|
187 </tr><tr> |
|
188 <td>recipients</td> |
|
189 <td>list</td> |
|
190 <td> eine Liste von Emailadressen</td> |
|
191 </tr><tr> |
|
192 <td>frm</td> |
|
193 <td>string</td> |
|
194 <td> Die Absender Emailadresse</td> |
|
195 </tr><tr> |
|
196 <td>provider</td> |
|
197 <td>string</td> |
|
198 <td> Provider über den geschickt werden soll</td> |
|
199 </tr> |
|
200 </tbody> |
|
201 </table> |
|
202 <h5>Ausgabe</h5> |
|
203 <table class="docs"> |
|
204 <thead> |
|
205 <tr> |
|
206 <td>Parameter</td> |
|
207 <td>Typ</td> |
|
208 <td>Beschreibung</td> |
|
209 </tr> |
|
210 </thead> |
|
211 <tbody> |
|
212 <tr> |
|
213 <td>id</td> |
|
214 <td>hash</td> |
|
215 <td> Die ID des Auftrages</td> |
|
216 </tr> |
|
217 </tbody> |
|
218 </table> |
|
219 </div><div class="item" id="method-status"> |
|
220 <h4>Status</h4> |
|
221 <p><code>status(id=None, detailed=False)</code></p> |
|
222 <p>Gibt den aktuellen Status eines Auftrages zurück.</p> |
|
223 <h5>Parameter</h5> |
|
224 <table class="docs"> |
|
225 <thead> |
|
226 <tr> |
|
227 <td>Parameter</td> |
|
228 <td>Typ</td> |
|
229 <td>Beschreibung</td> |
|
230 </tr> |
|
231 </thead> |
|
232 <tbody> |
|
233 <tr> |
|
234 <td>id</td> |
|
235 <td>hash</td> |
|
236 <td> Eine Auftragsnummer</td> |
|
237 </tr><tr> |
115 </tr><tr> |
238 <td>detailed</td> |
116 <td>detailed</td> |
239 <td>boolean</td> |
117 <td>boolean</td> |
240 <td> Details ausgeben</td> |
118 <td>return more details about the status</td> |
241 </tr> |
119 </tr> |
242 </tbody> |
120 </tbody> |
243 </table> |
121 </table> |
244 <h5>Ausgabe</h5> |
122 <h5>Return</h5> |
245 <table class="docs"> |
123 <table class="docs"> |
246 <thead> |
124 <thead> |
247 <tr> |
125 <tr> |
248 <td>Parameter</td> |
126 <td>parameter</td> |
249 <td>Typ</td> |
127 <td>type</td> |
250 <td>Beschreibung</td> |
128 <td>description</td> |
251 </tr> |
129 </tr> |
252 </thead> |
130 </thead> |
253 <tbody> |
131 <tbody> |
254 <tr> |
132 <tr> |
255 <td>jobs</td> |
133 <td>return</td> |
256 <td>list</td> |
134 <td>dict</td> |
257 <td> Eine Liste der Aufträge.</td> |
135 <td><ul class="simple"> |
258 </tr><tr> |
136 <li><cite>key</cite> -- is the job id</li> |
259 <td>job.name</td> |
137 <li>[<cite>key</cite>][<strong>'status'</strong>] -- status of the job</li> |
260 <td>string</td> |
138 </ul></td> |
261 <td> Angebener Name</td> |
139 </tr> |
262 </tr><tr> |
140 </tbody> |
263 <td>job.status</td> |
141 </table> |
264 <td>string</td> |
142 </div><div class="item" id="method-sms"> |
265 <td> Status des Auftrages</td> |
143 <h4>Sms</h4> |
266 </tr> |
144 <p><code>sms(user, message, recipients, route='default', info='')</code></p> |
267 </tbody> |
145 <p>Send a sms.</p> |
268 </table> |
146 <h5>Parameter</h5> |
269 </div><div class="item" id="method-stop"> |
147 <table class="docs"> |
270 <h4>Stop</h4> |
148 <thead> |
271 <p><code>stop(id)</code></p> |
149 <tr> |
272 <p>Stoppt den angegeben Auftrag.</p> |
150 <td>parameter</td> |
273 <h5>Parameter</h5> |
151 <td>type</td> |
274 <table class="docs"> |
152 <td>description</td> |
275 <thead> |
153 </tr> |
276 <tr> |
154 </thead> |
277 <td>Parameter</td> |
155 <tbody> |
278 <td>Typ</td> |
156 <tr> |
279 <td>Beschreibung</td> |
157 <td>user</td> |
280 </tr> |
158 <td>string</td> |
281 </thead> |
159 <td>apikey of a user</td> |
282 <tbody> |
160 </tr><tr> |
283 <tr> |
161 <td>message</td> |
284 <td>id</td> |
162 <td>string</td> |
285 <td>hash</td> |
163 <td>message</td> |
286 <td> Eine Auftragsnummer</td> |
164 </tr><tr> |
287 </tr> |
165 <td>recipients</td> |
288 </tbody> |
166 <td>list</td> |
289 </table> |
167 <td>a list of telefon numbers (use ITU-T E.123)</td> |
290 </div><div class="item" id="method-getProvider"> |
168 </tr><tr> |
291 <h4>GetProvider</h4> |
169 <td>route</td> |
292 <p><code>getProvider(typ)</code></p> |
170 <td>string|list</td> |
293 <p>Gibt eine Liste aller verfügbaren Provider zurück.</p> |
171 <td>route to use to send, or a list of routes as fallback</td> |
294 <h5>Parameter</h5> |
172 </tr><tr> |
295 <table class="docs"> |
173 <td>info</td> |
296 <thead> |
174 <td>string</td> |
297 <tr> |
175 <td>a name, to combine different jobs to one billing group</td> |
298 <td>Parameter</td> |
176 </tr> |
299 <td>Typ</td> |
177 </tbody> |
300 <td>Beschreibung</td> |
178 </table> |
301 </tr> |
179 <h5>Return</h5> |
302 </thead> |
180 <table class="docs"> |
303 <tbody> |
181 <thead> |
304 <tr> |
182 <tr> |
|
183 <td>parameter</td> |
|
184 <td>type</td> |
|
185 <td>description</td> |
|
186 </tr> |
|
187 </thead> |
|
188 <tbody> |
|
189 <tr> |
|
190 <td>return</td> |
|
191 <td>integer</td> |
|
192 <td>the job id</td> |
|
193 </tr> |
|
194 </tbody> |
|
195 </table> |
|
196 </div><div class="item" id="method-fax"> |
|
197 <h4>Fax</h4> |
|
198 <p><code>fax(user, subject, fax, recipients, route='default', info='')</code></p> |
|
199 <p>Send a fax.</p> |
|
200 <h5>Parameter</h5> |
|
201 <table class="docs"> |
|
202 <thead> |
|
203 <tr> |
|
204 <td>parameter</td> |
|
205 <td>type</td> |
|
206 <td>description</td> |
|
207 </tr> |
|
208 </thead> |
|
209 <tbody> |
|
210 <tr> |
|
211 <td>user</td> |
|
212 <td>string</td> |
|
213 <td>apikey of a user</td> |
|
214 </tr><tr> |
|
215 <td>subject</td> |
|
216 <td>string</td> |
|
217 <td>subject</td> |
|
218 </tr><tr> |
|
219 <td>fax</td> |
|
220 <td>string</td> |
|
221 <td>content (base64 encoded)</td> |
|
222 </tr><tr> |
|
223 <td>recipients</td> |
|
224 <td>list</td> |
|
225 <td>a list of telefon numbers (use ITU-T E.123)</td> |
|
226 </tr><tr> |
|
227 <td>route</td> |
|
228 <td>string|list</td> |
|
229 <td>route to use to send, or a list of routes as fallback</td> |
|
230 </tr><tr> |
|
231 <td>info</td> |
|
232 <td>string</td> |
|
233 <td>a name, to combine different jobs to one billing group</td> |
|
234 </tr> |
|
235 </tbody> |
|
236 </table> |
|
237 <h5>Return</h5> |
|
238 <table class="docs"> |
|
239 <thead> |
|
240 <tr> |
|
241 <td>parameter</td> |
|
242 <td>type</td> |
|
243 <td>description</td> |
|
244 </tr> |
|
245 </thead> |
|
246 <tbody> |
|
247 <tr> |
|
248 <td>return</td> |
|
249 <td>integer</td> |
|
250 <td>the job id</td> |
|
251 </tr> |
|
252 </tbody> |
|
253 </table> |
|
254 </div><div class="item" id="method-mail"> |
|
255 <h4>Mail</h4> |
|
256 <p><code>mail(user, subject, body, recipients, frm=None, route='default', info='')</code></p> |
|
257 <p>Send a mail.</p> |
|
258 <h5>Parameter</h5> |
|
259 <table class="docs"> |
|
260 <thead> |
|
261 <tr> |
|
262 <td>parameter</td> |
|
263 <td>type</td> |
|
264 <td>description</td> |
|
265 </tr> |
|
266 </thead> |
|
267 <tbody> |
|
268 <tr> |
|
269 <td>user</td> |
|
270 <td>string</td> |
|
271 <td>apikey of a user</td> |
|
272 </tr><tr> |
|
273 <td>subject</td> |
|
274 <td>string</td> |
|
275 <td>subject</td> |
|
276 </tr><tr> |
|
277 <td>body</td> |
|
278 <td>string</td> |
|
279 <td>mail body</td> |
|
280 </tr><tr> |
|
281 <td>recipients</td> |
|
282 <td>list</td> |
|
283 <td>a list of email addresses</td> |
|
284 </tr><tr> |
|
285 <td>frm</td> |
|
286 <td>string</td> |
|
287 <td>sender mail address</td> |
|
288 </tr><tr> |
|
289 <td>route</td> |
|
290 <td>string|list</td> |
|
291 <td>route to use to send, or a list of routes as fallback</td> |
|
292 </tr><tr> |
|
293 <td>info</td> |
|
294 <td>string</td> |
|
295 <td>a name, to combine different jobs to one billing group</td> |
|
296 </tr> |
|
297 </tbody> |
|
298 </table> |
|
299 <h5>Return</h5> |
|
300 <table class="docs"> |
|
301 <thead> |
|
302 <tr> |
|
303 <td>parameter</td> |
|
304 <td>type</td> |
|
305 <td>description</td> |
|
306 </tr> |
|
307 </thead> |
|
308 <tbody> |
|
309 <tr> |
|
310 <td>return</td> |
|
311 <td>integer</td> |
|
312 <td>the job id</td> |
|
313 </tr> |
|
314 </tbody> |
|
315 </table> |
|
316 </div><div class="item" id="method-routes"> |
|
317 <h4>Routes</h4> |
|
318 <p><code>routes(user, typ=None)</code></p> |
|
319 <p>Returns a list of all possible offernames.</p> |
|
320 <h5>Parameter</h5> |
|
321 <table class="docs"> |
|
322 <thead> |
|
323 <tr> |
|
324 <td>parameter</td> |
|
325 <td>type</td> |
|
326 <td>description</td> |
|
327 </tr> |
|
328 </thead> |
|
329 <tbody> |
|
330 <tr> |
|
331 <td>user</td> |
|
332 <td>string</td> |
|
333 <td>apikey of a user</td> |
|
334 </tr><tr> |
305 <td>typ</td> |
335 <td>typ</td> |
306 <td>string</td> |
336 <td>string</td> |
307 <td> Der Typ zu dem die Providerloste ausgeben werden soll |
337 <td>a typ of message -- one of in this list ["sms","fax","mail"]</td> |
308 Einer der Liste ["sms","fax","mail"]</td> |
338 </tr> |
309 </tr> |
339 </tbody> |
310 </tbody> |
340 </table> |
311 </table> |
341 <h5>Return</h5> |
312 <h5>Ausgabe</h5> |
342 <table class="docs"> |
313 <table class="docs"> |
343 <thead> |
314 <thead> |
344 <tr> |
315 <tr> |
345 <td>parameter</td> |
316 <td>Parameter</td> |
346 <td>type</td> |
317 <td>Typ</td> |
347 <td>description</td> |
318 <td>Beschreibung</td> |
348 </tr> |
319 </tr> |
349 </thead> |
320 </thead> |
350 <tbody> |
321 <tbody> |
351 <tr> |
322 <tr> |
352 <td>return</td> |
323 <td>providerlist</td> |
353 <td>list</td> |
324 <td>list</td> |
354 <td>a list of all possible offer names for a typ</td> |
325 <td> Eine Liste aller möglichen Provider</td> |
355 </tr> |
326 </tr> |
356 </tbody> |
327 </tbody> |
357 </table> |
328 </table> |
358 </div><div class="item" id="method-defaultRoute"> |
329 </div><div class="item" id="method-getDefaultProvider"> |
359 <h4>DefaultRoute</h4> |
330 <h4>GetDefaultProvider</h4> |
360 <p><code>defaultRoute(user, typ=None)</code></p> |
331 <p><code>getDefaultProvider(typ)</code></p> |
361 <p>Returns all default offernames.</p> |
332 <p>Gibt den Standardprovider zurück.</p> |
362 <h5>Parameter</h5> |
333 <h5>Parameter</h5> |
363 <table class="docs"> |
334 <table class="docs"> |
364 <thead> |
335 <thead> |
365 <tr> |
336 <tr> |
366 <td>parameter</td> |
337 <td>Parameter</td> |
367 <td>type</td> |
338 <td>Typ</td> |
368 <td>description</td> |
339 <td>Beschreibung</td> |
369 </tr> |
340 </tr> |
370 </thead> |
341 </thead> |
371 <tbody> |
342 <tbody> |
372 <tr> |
343 <tr> |
373 <td>user</td> |
|
374 <td>string</td> |
|
375 <td>apikey of a user</td> |
|
376 </tr><tr> |
344 <td>typ</td> |
377 <td>typ</td> |
345 <td>string</td> |
378 <td>string</td> |
346 <td> Der Typ zu dem die Providerloste ausgeben werden soll |
379 <td>a typ of message -- one of in this list ["sms","fax","mail"]</td> |
347 Einer der Liste ["sms","fax","mail"]</td> |
380 </tr> |
348 </tr> |
381 </tbody> |
349 </tbody> |
382 </table> |
350 </table> |
383 <h5>Return</h5> |
351 <h5>Ausgabe</h5> |
384 <table class="docs"> |
352 <table class="docs"> |
385 <thead> |
353 <thead> |
386 <tr> |
354 <tr> |
387 <td>parameter</td> |
355 <td>Parameter</td> |
388 <td>type</td> |
356 <td>Typ</td> |
389 <td>description</td> |
357 <td>Beschreibung</td> |
390 </tr> |
358 </tr> |
391 </thead> |
359 </thead> |
392 <tbody> |
360 <tbody> |
393 <tr> |
361 <tr> |
394 <td>return</td> |
362 <td>provider</td> |
395 <td>list</td> |
363 <td>string</td> |
396 <td>a list of all possible offer names for a typ</td> |
364 <td> Der Standardprovider für den angeben Typ</td> |
397 </tr> |
|
398 </tbody> |
|
399 </table> |
|
400 </div><div class="item" id="method-bill"> |
|
401 <h4>Bill</h4> |
|
402 <p><code>bill(user=None)</code></p> |
|
403 <p>Returns the bill, of not paid messages.</p> |
|
404 <h5>Parameter</h5> |
|
405 <table class="docs"> |
|
406 <thead> |
|
407 <tr> |
|
408 <td>parameter</td> |
|
409 <td>type</td> |
|
410 <td>description</td> |
|
411 </tr> |
|
412 </thead> |
|
413 <tbody> |
|
414 <tr> |
|
415 <td>user</td> |
|
416 <td>string</td> |
|
417 <td>apikey of a user</td> |
|
418 </tr> |
|
419 </tbody> |
|
420 </table> |
|
421 <h5>Return</h5> |
|
422 <table class="docs"> |
|
423 <thead> |
|
424 <tr> |
|
425 <td>parameter</td> |
|
426 <td>type</td> |
|
427 <td>description</td> |
|
428 </tr> |
|
429 </thead> |
|
430 <tbody> |
|
431 <tr> |
|
432 <td>return</td> |
|
433 <td>dict</td> |
|
434 <td><ul class="simple"> |
|
435 <li><cite>route</cite> -- one offer name ; <strong>"total"</strong> complete sum</li> |
|
436 <li>[<cite>route</cite>][<cite>info</cite>][<strong>anz</strong>] -- Number of sended messages in one billing group</li> |
|
437 <li>[<cite>route</cite>][<cite>info</cite>][<strong>price</strong>] -- Price for one billing group</li> |
|
438 <li>[<cite>route</cite> | <strong>total</strong>][<strong>anz</strong>] -- Number of sended messages for one offer</li> |
|
439 <li>[<cite>route</cite> | <strong>total</strong>][<strong>price</strong>] -- Price for one offer</li> |
|
440 </ul></td> |
|
441 </tr> |
|
442 </tbody> |
|
443 </table> |
|
444 </div><div class="item" id="method-telnumber"> |
|
445 <h4>Telnumber</h4> |
|
446 <p><code>telnumber(recipients)</code></p> |
|
447 <p>Return True, if all telnumbers a vaild.</p> |
|
448 <h5>Parameter</h5> |
|
449 <table class="docs"> |
|
450 <thead> |
|
451 <tr> |
|
452 <td>parameter</td> |
|
453 <td>type</td> |
|
454 <td>description</td> |
|
455 </tr> |
|
456 </thead> |
|
457 <tbody> |
|
458 <tr> |
|
459 <td>recipients</td> |
|
460 <td>list</td> |
|
461 <td>a list of telnumbers (use ITU-T E.123)</td> |
|
462 </tr> |
|
463 </tbody> |
|
464 </table> |
|
465 <h5>Return</h5> |
|
466 <table class="docs"> |
|
467 <thead> |
|
468 <tr> |
|
469 <td>parameter</td> |
|
470 <td>type</td> |
|
471 <td>description</td> |
|
472 </tr> |
|
473 </thead> |
|
474 <tbody> |
|
475 <tr> |
|
476 <td>return</td> |
|
477 <td>boolean</td> |
|
478 <td>True -- all numbers are valid</td> |
|
479 </tr> |
|
480 </tbody> |
|
481 </table> |
|
482 </div><div class="item" id="method-email"> |
|
483 <h4>Email</h4> |
|
484 <p><code>email(recipients)</code></p> |
|
485 <p>Return True, if all mailadresses a valid.</p> |
|
486 <h5>Parameter</h5> |
|
487 <table class="docs"> |
|
488 <thead> |
|
489 <tr> |
|
490 <td>parameter</td> |
|
491 <td>type</td> |
|
492 <td>description</td> |
|
493 </tr> |
|
494 </thead> |
|
495 <tbody> |
|
496 <tr> |
|
497 <td>recipients</td> |
|
498 <td>list</td> |
|
499 <td>a list of mailadresses</td> |
|
500 </tr> |
|
501 </tbody> |
|
502 </table> |
|
503 <h5>Return</h5> |
|
504 <table class="docs"> |
|
505 <thead> |
|
506 <tr> |
|
507 <td>parameter</td> |
|
508 <td>type</td> |
|
509 <td>description</td> |
|
510 </tr> |
|
511 </thead> |
|
512 <tbody> |
|
513 <tr> |
|
514 <td>return</td> |
|
515 <td>boolean</td> |
|
516 <td>True -- all addresses are valid</td> |
365 </tr> |
517 </tr> |
366 </tbody> |
518 </tbody> |
367 </table> |
519 </table> |
368 </div> |
520 </div> |
369 </div> |
521 </div> |