Difference between revisions of "MOR API"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 41: Line 41:
All requests are in similar format:
All requests are in similar format:


  HTML POST: http://<SERVER_IP>/mor/api/<function>?u=username&p=password
  HTML POST: http://<SERVER_IP>/billing/api/<function>?u=username&p=password


* username/password - of the user who is asking for the data.  
* username/password - of the user who is asking for the data.  

Revision as of 13:34, 23 April 2009

MOR API lets other software interact to MOR without knowing internal structure of DB and other logic.

MOR accepts requests by HTML POST and returns result in XML.


Functions

API Related

Login

  • login - Logs in user into MOR
  • logout - Logs out user from MOR

Details

Callback

Accounting

  • invoices - Retrieves list of invoices in selected time period.

Calls

  • calls - Retrieves list of calls in selected time period for some user/device






HTML POST

All requests are in similar format:

HTML POST: http://<SERVER_IP>/billing/api/<function>?u=username&p=password
  • username/password - of the user who is asking for the data.

If user has 'admin' rights - he will get more results and he can perform more actions compared to the user who does not have such rights.




Following functionality WILL BE implemented IN THE FUTURE




API specification to be implemented in the future