Changes

Line 52: Line 52:       −
[[Image:Blue bubble 2 1.png]]<font size="+1">In order to obtain a session ID, type in the router's LAN IP address in the '''URL''' field, type in the login username and password in the '''User Auth.''' field. Then paste this command into the '''Content to send''' field and click '''Post''':</font>
+
[[Image:Blue bubble 2 1.png]]<font size="+1">In order to obtain a Session ID, type in the router's LAN IP address in the '''URL''' field, type in the login username and password in the '''User Auth.''' field. Then paste this command into the '''Content to send''' field and click '''Post''':</font>
    
<b><font size="+1">{ "jsonrpc": "2.0", "id": 1, "method": "call", "params": [ "00000000000000000000000000000000", "session", "login", { "username": "root", "password": "<span style="color:blue">admin01</span>"  } ] }</font></b>
 
<b><font size="+1">{ "jsonrpc": "2.0", "id": 1, "method": "call", "params": [ "00000000000000000000000000000000", "session", "login", { "username": "root", "password": "<span style="color:blue">admin01</span>"  } ] }</font></b>
Line 59: Line 59:     
[[Image:Configuration examples json-rpc firefox poster session id.PNG]]
 
[[Image:Configuration examples json-rpc firefox poster session id.PNG]]
 +
 +
 +
 +
<font size="+1">Once you've issued the command, a Response window containing your Session ID should appear:</font>
 +
 +
 +
[[Image:Configuration examples json-rpc firefox poster session id response.PNG]]
 +
 +
 +
Copy the ID since you'll be needing it when issuing other commands to the router.
 +
 +
'''NOTE:''' if your commands stop working and you get a Response like this: '''{"jsonrpc":"2.0","id":1,"error":{"code":-32002,"message":"Access denied"}}''', it probably means your Session ID has expired and you need a new one. A Session ID expires after 300 seconds (5 minutes).