import http.server
import socketserver
import json
PORT = 8000
class MyHandler(http.server.BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header("Content-type", "application/json")
self.end_headers()
data = {"message": "Hello from the Python server!", "status": "success"}
self.wfile.write(json.dumps(data).encode("utf-8"))
with socketserver.TCPServer(("", PORT), MyHandler) as httpd:
print(f"Serving at port {PORT}")
httpd.serve_forever()
27 lines
832 B
JSON
27 lines
832 B
JSON
{
|
|
"order": "feedback",
|
|
"type": "Postpayment",
|
|
"at": "https://testnet-dm2.bitdeals.org",
|
|
"date": "2025-11-24 13:56:04",
|
|
"salt": "ab4a60c3",
|
|
"code": "5d432facab0f33c3859c01dfa2fd28c0a9742e4a",
|
|
"seller": {
|
|
"address": "mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp",
|
|
"rating": "0+, 30%"
|
|
},
|
|
"customer": {
|
|
"address": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC",
|
|
"rating": "0+, 36%",
|
|
"signature": "HxcVlEuqV5G3FUW6Ter553DmtcxTT7DWBUtSO5mn+DS1MZzEwLcLwEYWXJSbtphHKYCQU3EZTkWPfBaOFA2kxhU="
|
|
},
|
|
"payment": {
|
|
"address": "2Mzc3G6oKce8WHxSWF9eJ826swAGHD4Ftzi",
|
|
"sum": "0.01 tBTC",
|
|
"until": "2025-11-25 13:56:04"
|
|
},
|
|
"feedback": {
|
|
"comments": "negative mgs",
|
|
"leave_before": "2025-12-08 13:56:04",
|
|
"status": "Negative"
|
|
}
|
|
} |