Type/to search
5
Follow
32
Followers
[JS에서 FMZ API를 호출하여 특정 로봇을 중지하고 로봇을 다시 시작하는 방법
Help
Created 2021-04-06 19:34:48  Updated 2021-04-07 13:11:57
 1
 1206

JS는 FMZ의 API를 호출하여 지정된 로봇을 중지하고 지정된 로봇을 다시 시작합니다. StopRobot ((RobotId) 또는 RestartRobot ((RobotId) 를 어떻게 수정할 수 있는지, method="StopRobot ((123456) ") 는 작동하지 않습니다.

function main() { var accessKey = "" var secretKey = "" var method = "GetNodeList" var d = { version: '1.0', access_key: accessKey, method: method, args: "null", nonce: (new Date().getTime()).toString() } var m = d.version + "|" + d.method + "|" + d.args + "|" + d.nonce + "|" + secretKey d.sign = Hash("md5", "hex", m) var ret = HttpQuery("https://www.fmz.com/api/v1?access_key=" + accessKey + "&nonce=" + d.nonce + "&args=null&sign=" + d.sign + "&version=1.0&method=" + d.method) Log(ret) }
Related Recommendations
Comment
All comments (1)
    5 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)