Commit b5667488b32a02277c1ee9a2eb761f1bfa5df058

setkeh 2013-06-18T23:04:18

Added Python Api Example

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/api-example.py b/api-example.py
index 4a88389..c083b21 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','')