From b5667488b32a02277c1ee9a2eb761f1bfa5df058 Mon Sep 17 00:00:00 2001 From: setkeh Date: Tue, 18 Jun 2013 23:04:18 +1000 Subject: [PATCH] Added Python Api Example --- api-example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-example.py b/api-example.py index 4a883896..c083b21b 100644 --- a/api-example.py +++ b/api-example.py @@ -23,7 +23,7 @@ api_param = raw_input("Enter Api Param: ") reply_command = raw_input("Enter Json Reply command: ") reply_param = raw_input("Enter Json Reply Param: ") s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) -s.connect(('192.168.1.6',4028)) +s.connect(('127.0.0.1',4028)) s.send(json.dumps({"command":api_command,"parameter":api_param})) response = linesplit(s) response = response.replace('\x00','')