Difference between revisions of "MOR API"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 2: Line 2:


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


=Functions=
=Functions=
Line 17: Line 19:


* [[MOR API invoices|invoices]] - Retrieves list of invoices in selected time period.
* [[MOR API invoices|invoices]] - Retrieves list of invoices in selected time period.
=HTML POST=
All requests are in similar format:
HTML POST: http://<SERVER_IP>/mor/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.

Revision as of 14:51, 17 January 2008

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

Login

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

Callback

Accounting

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


HTML POST

All requests are in similar format:

HTML POST: http://<SERVER_IP>/mor/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.