View Single Post
Old 06-30-2017, 03:34 AM   #2
ISPsystem team
Join Date: Jul 2014
Posts: 443
ksenya is on a distinguished road

In order to use API, you don't need to know all the functions and parameters. You only need to follow the steps below:

1) Open the log file of the control panel with the tail command:
tail -f /usr/local/mgr5/var/XXXmgr.log
where XXX is a short name of a control panel, such as bill, isp, vm, dci,
For BILLmanager the command will look like this:

tail -f /usr/local/mgr5/var/billmgr.log

2) Perform a required action in the web-interface, and in the log file you will see the function and its parameters. The following is the function that is called when you pay for a service:
Feb 3 08:59:30 [1479:1454] core_module INFO Request [][] 'clicked_button=bay&func=basket&id=235&operafake=1 486109885626&progressid=false&promocode=&sfrom=aja x&sok=ok&stylesheet='
ksenya is offline   Reply With Quote