JS memanggil API FMZ untuk menghentikan robot yang ditentukan dan memulai kembali robot yang ditentukan, bagaimana mengubah StopRobot ((RobotId) atau RestartRobot ((RobotId), metode="StopRobot ((123456) " tidak berfungsi
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)
}
Rumput https://www.fmz.com/digest-topic/6772