The resource loading... loading...

FMZ's API is too difficult to use

Author: allez-z, Created: 2021-12-04 15:35:05, Updated:

The FMZ API controller restarts the robot incorrectly, most of the time without success, can you optimize?


More

Inventors quantify - small dreamsHello, you can send specific problem scenarios, error messages.

Inventors quantify - small dreamsWhat's up? Direct verification Support for token-free authentication (directly passing secret_key authentication) to generate a URL to be directly accessed; for example, URLs that send interaction instructions directly to a physical disk can be used for WebHook callbacks in TradingView or other scenarios. For the CommandRobot function (RobotId, Cmd), no nonce checks are performed, and there is no limit to the frequency or number of accesses to the interface. What's up? What's up? Direct verification Support for token-free authentication (directly passing secret_key authentication) to generate a URL to be directly accessed; for example, URLs that send interaction instructions directly to a physical disk can be used for WebHook callbacks in TradingView or other scenarios. For the CommandRobot function (RobotId, Cmd), no nonce checks are performed, and there is no limit to the frequency or number of accesses to the interface. What's up? What's up? Direct verification Support for token-free authentication (directly passing secret_key authentication) to generate a URL to be directly accessed; for example, URLs that send interaction instructions directly to a physical disk can be used for WebHook callbacks in TradingView or other scenarios. For the CommandRobot function (RobotId, Cmd), no nonce checks are performed, and there is no limit to the frequency or number of accesses to the interface. What's up?

allez-zThis is a direct verification method in the API documentation: httpQuery (("https://www.fmz.com/api/v1?access_key=xxxxxxxxx&secret_key=xxxxxxxxxx&method=RestartRobot&args=[" + info.data.result.robots[i].id + "]") Every once in a while, check if the robot has made a mistake, and if it does, try to restart it. But the restart failed and returned {"code":3, "data":null} Normal if the restart is successful should return { "code": 0, "data": { "result":1, "error": null}}