Difference between revisions of "MOR API user logout"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 1: Line 1:
=Description=
[[MOR API]] Logs out user from MOR
[[MOR API]] Logs out user from MOR
<br><br>
=Usage=
* Call: /api/user_logout
<br><br>
===Parametres===
* u – username. '''Required'''.
<br><br>
===Request===


==Request==
  HTML POST: http://<SERVER_IP>/billing/api/user_logout?u=username
 
<br><br>
  HTML POST: http://<SERVER_IP>/billing/api/logout?u=username&p=password
===Result===


==Result==
'''Success''' if User is logged out from the system.


  <?xml version="1.0" encoding="utf-8" standalone="yes"?>
  <?xml version="1.0" encoding="utf-8" standalone="yes"?>
Line 12: Line 22:
     <status>ok</status>
     <status>ok</status>
   </action>
   </action>
----


 
'''Error'''.This means that wrong username and/or password and user can't be authenticated and logged out from the system.
Everything is ok. User is logged out from the system.
 
----


  <?xml version="1.0" encoding="utf-8" standalone="yes"?>
  <?xml version="1.0" encoding="utf-8" standalone="yes"?>
Line 23: Line 31:
     <status>failed</status>
     <status>failed</status>
   </action>
   </action>
<br><br>
=See also=


 
* [[MOR API]]
This means that wrong username and/or password and user can't be authenticated and logged out from the system.

Revision as of 08:16, 23 May 2013

Description

MOR API Logs out user from MOR

Usage

  • Call: /api/user_logout



Parametres

  • u – username. Required.



Request

HTML POST: http://<SERVER_IP>/billing/api/user_logout?u=username



Result

Success if User is logged out from the system.

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

Error.This means that wrong username and/or password and user can't be authenticated and logged out from the system.

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



See also