Difference between revisions of "MOR API user login"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 9: Line 9:
==Result==
==Result==


  <xml encoding="UTF-8" standalone="yes">
  <?xml version="1.0" standalone="yes"?>
   <action>
   <action>
     <name>login</name>
     <name>login</name>
     <status>ok</status>
     <status>ok</status>
   </action>
   </action>
  </xml>
   


Everything is ok. User is logged in to the system.
Everything is ok. User is logged in to the system.
Line 20: Line 20:
----
----


  <xml encoding="UTF-8" standalone="yes">
  <?xml version="1.0" standalone="yes"?>
   <action>
   <action>
     <name>login</name>
     <name>login</name>
     <status>failed</status>
     <status>failed</status>
   </action>
   </action>
  </xml>
   


This means that wrong username and/or password and user can't be authenticated.
This means that wrong username and/or password and user can't be authenticated.

Revision as of 16:58, 17 February 2008

MOR API

Logs in user into MOR

Request

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

Result

<?xml version="1.0" standalone="yes"?>
 <action>
   <name>login</name>
   <status>ok</status>
 </action>

Everything is ok. User is logged in to the system.


<?xml version="1.0" standalone="yes"?>
 <action>
   <name>login</name>
   <status>failed</status>
 </action>

This means that wrong username and/or password and user can't be authenticated.