|
Post by xtr4nge on Sept 30, 2015 18:05:48 GMT
API
Parameters api: The actual parameter to perform actions using the API. token: Authentication token. You can get/change the token from the config page. If the session is already established, the TOKEN is not required.
using CURL HTTP:8000 curl -sS "http://{IP}:8000/modules/api/includes/ws_action.php?token={TOKEN}&api=/config/io/action" HTTPS:8443 curl -sS "https://{IP}:8443/modules/api/includes/ws_action.php?token={TOKEN}&api=/config/io/action" --insecure
CONFIG Interfaces GET: /config/io/{in|out}/iface SET: /config/io/{in|out}/iface/{value} GET: /config/io/{in|out}/type SET: /config/io/in/type/{value} GET: /config/io/{in|out}/ip SET: /config/io/in/ip/{value} GET: /config/io/{in|out}/mask SET: /config/io/{in|out}/mask/{value} GET: /config/io/{in|out}/gw SET: /config/io/{in|out}/gw/{value}
Example (SET): https://{IP}:8443/modules/api/includes/ws_action.php?token={TOKEN}&api=/config/io/in/ip/10.0.0.1
CONFIG Action Interface (sniff|inject) GET: /config/io/{in|out}/action SET: /config/io/{in|out}/action/{value}
Example (SET): https://{IP}:8443/modules/api/includes/ws_action.php?token={TOKEN}&api=/config/inout/action/wlan0
MODULES GET: /module GET: /module/{module-name} SET: /module/{module-name}/{start|stop}
Example (START): https://{IP}:8443/modules/api/includes/ws_action.php?token={TOKEN}&api=/module/fruityproxy/start
|
|
|
Post by m3m0r3x on Oct 1, 2015 7:09:07 GMT
Hi Xtr4nge,
thank you very much for releasing the API infos. That is what I need for the PiPlate Menue. I think I know what I'm doing on the weekend :-).
best regards
mem
|
|
|
Post by xtr4nge on Oct 1, 2015 8:26:21 GMT
Hi m3m0r3x, Yes, the API allows me to do some changes on the code that I have for the adafruit 16x2 lcd + keypad. I will be releasing the code that I have with some changes during the weekend. So, you can recycle anything that you want from there regards,
|
|
|
Post by m3m0r3x on Oct 1, 2015 9:15:28 GMT
Hi Xtr4nge,
that sounds great. I am looking forward to see the code. I think there are a lot of points in your code that i realy can recycle... Especialy because I use the adafruit 16x2 lcd + keypad, too.
regards,
mem
|
|