M4 API user logout

From Kolmisoft Wiki
Revision as of 08:48, 31 December 2015 by Tomas (talk | contribs) (Created page with '=Description= MOR API Logs out user from MOR <br><br> =Usage= * For Backwards-compatibility old name 'logout' is also usable. Call: '''/api/logout''' * Methods: POST, GET(i…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

MOR API Logs out user from MOR

Usage

  • For Backwards-compatibility old name 'logout' is also usable. Call: /api/logout
  • Methods: POST, GET(if allowed, not recomended)



Parametres



Request

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



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