HTTP API - STK Operation: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==== 9.1 Request ==== '''POST <nowiki>https://gateway_ip/STKGo</nowiki>''' ==== 9.2 Request Parameter ==== {| class="wikitable" |'''Parameter''' |'''Type''' |'''Description''' |- | colspan="3" |'''Required Parameter''' |- |port |Integer | |- | colspan="3" |'''Optional Parameter''' |- |item |Integer | |- |param |String | |- |action |String |“ok”, ”cancle”or ”home” |} ==== 9.3 Example of STK Operation ==== ====== Request...") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''POST <nowiki>https://gateway_ip/STKGo</nowiki>''' | |||
'''POST <nowiki>https://gateway_ip/STKGo</nowiki>''' | Request Parameters: | ||
{| class="wikitable" | {| class="wikitable" | ||
|'''Parameter''' | |'''Parameter''' | ||
Line 29: | Line 27: | ||
|} | |} | ||
'''Example of STK Operation:''' | |||
'''Request:''' | |||
curl -k --anyauth -u admin:admin -d '{"port":7,"item":1}' -H "Content-Type: application/json" -H "Content-Type: application/json" <nowiki>http://gateway_ip/STKGo</nowiki> | curl -k --anyauth -u admin:admin -d '{"port":7,"item":1}' -H "Content-Type: application/json" -H "Content-Type: application/json" <nowiki>http://gateway_ip/STKGo</nowiki> | ||
curl -k --anyauth -u admin:admin -d '{"port":7,"action":"cancle"}' | curl -k --anyauth -u admin:admin -d '{"port":7,"action":"cancle"}' -H "Content-Type: application/json" -H "Content-Type: application/json" <nowiki>http://gateway_ip/STKGo</nowiki> | ||
-H "Content-Type: application/json" -H "Content-Type: application/json" <nowiki>http://gateway_ip/STKGo</nowiki> |
Latest revision as of 14:51, 5 May 2024
POST https://gateway_ip/STKGo Request Parameters:
Parameter | Type | Description |
Required Parameter | ||
port | Integer | |
Optional Parameter | ||
item | Integer | |
param | String | |
action | String | “ok”, ”cancle”or ”home” |
Example of STK Operation:
Request:
curl -k --anyauth -u admin:admin -d '{"port":7,"item":1}' -H "Content-Type: application/json" -H "Content-Type: application/json" http://gateway_ip/STKGo
curl -k --anyauth -u admin:admin -d '{"port":7,"action":"cancle"}' -H "Content-Type: application/json" -H "Content-Type: application/json" http://gateway_ip/STKGo