Difference between revisions of "MOR API user login"
From Kolmisoft Wiki
Jump to navigationJump to search
Line 3: | Line 3: | ||
Logs in user into MOR | Logs in user into MOR | ||
To set the customer redirected to the MoR billing Main site if the login was successful, go to: '''In SETTINGS->Setup->Settings->API''' and check '''Allow API Login Redirect'''. | To set the customer redirected to the MoR billing Main site, if the login was successful, go to: '''In SETTINGS->Setup->Settings->API''' and check '''Allow API Login Redirect''' (this functionality is available from MOR 9). | ||
==Request== | ==Request== |
Revision as of 08:59, 10 January 2011
Logs in user into MOR
To set the customer redirected to the MoR billing Main site, if the login was successful, go to: In SETTINGS->Setup->Settings->API and check Allow API Login Redirect (this functionality is available from MOR 9).
Request
HTML POST: http://<SERVER_IP>/billing/api/login?u=username&p=password
Result
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <action> <name>login</name> <status>ok</status> </action>
Everything is ok. User is logged in to the system.
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <action> <name>login</name> <status>failed</status> </action>
This means that wrong username and/or password and user can't be authenticated.