You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Description

Use this API to send a command on requested devil. Needed arguments are:

  • devil_number: The devil number to query;
  • opcode: TCP_DCS opcode to call;
  • arguments: String containing command arguments;

Example Query

To test this query, Postman can be used.

In the Headers Tab, add the Content-Type header and as value use application/json (Fig. 1);


Fig 1 - Added Content-Type header to query

In the Body Tab, select raw for format and add the needed data to execute command (Fig. 2);


Fig. 2 - Added json data in Body section

Press on Send button and the response will be available in the bottom part of Postman Window. You should see a json message like the one in Fig. 3;


Fig. 3 - JSON Response

For a better understanding on how to use this API, please refer to TCP_DCS protocol documentation page.

  • No labels