PDA

View Full Version : API docs not found


Alien
06-23-2017, 03:55 PM
I looked through your wiki docs, but could not find information on how I can create an API call... this process is not described? If I gave you an example of the operation that I want to perfrom, could you make that call for me?

ksenya
06-27-2017, 04:16 AM
The easiest way to generate an API request is to perform a desired action in the panel interface and view the function and its parameters in the log file.

Complete the following steps:

1. Open the log file of the control panel with the ''tail'' command:

tail -f /usr/local/mgr5/var/XXXmgr.log | grep Request

where XXX is a short name of the control panel. For example: bill, isp, vm, dci

2. Execute a required action in the interface of the control panel. In the log file you will see the function being executed at that moment, and its parameters (it is shown in green color starting from INFO Request).