Skip to content

Commit

Permalink
GITBOOK-61: No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
zlshames authored and gitbook-bot committed Mar 17, 2023
1 parent d3963a7 commit d6bae18
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@
* [Build Yourself / Contribution Guide](developer-guides/build-yourself-contribution-guide.md)
* [REST API & Webhooks](developer-guides/rest-api-and-webhooks.md)
* [Simple Web Server for Webhooks](developer-guides/simple-web-server-for-webhooks/README.md)
* [Python Web Server Example](developer-guides/simple-web-server-for-webhooks/python-web-server-example.md)
* [Python Web Server Example](developer-guides/simple-web-server-for-webhooks/python-web-server.md)
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ description: >-
events.
---

# Python Web Server
# Python Web Server Example

Most of the code below is boilerplate code. The important pieces to change are lines 9 and 64-104.

On line 9, you need to set your server password.

Lines 64-104 define which events are handled, and how they are being handled. Those are likely the lines you want to modify the most to customize the functionality.

{% code lineNumbers="true" %}
```python
import json
import requests
Expand Down Expand Up @@ -141,3 +148,4 @@ server = HTTPServer(("", 8000), PostHandler)
print("Server started on port 8000")
server.serve_forever()
```
{% endcode %}

0 comments on commit d6bae18

Please sign in to comment.