added tut

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-05-16 21:43:31 +02:00
parent eeba48e52e
commit 6e31b858d3
1 changed files with 7 additions and 12 deletions

19
main.py
View File

@ -100,18 +100,13 @@ if __name__ == '__main__':
</ul> </ul>
<br> <br>
<p>How to use the API:</p> <p>How to use the API:</p>
<ul> <code>/power?power=True</code>
<li><code>/api/send</code>: Send a SMS</li> <br>
<p>list of parameters:</p> <code>/power?power=False</code>
<ul> <br>
<li><code>number: The phone number of the recipient</code></li> <code>/mode?mode=0</code>
<li><code>message: The message to send</code></li> <br>
<ul> <code>/mode?mode=1&r=0&g=0&b=0</code>
<p>Example:</p>
<ul>
<li><code>/api/send?number=01234567890&message="Hello World"</code></li>
</ul>
</ul>
</body> </body>
</html> </html>
''' '''