Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
en:sidebar:remoteapi:apiref:core:logout [23/01/2013 14:46] zuve |
en:sidebar:remoteapi:apiref:core:logout [29/11/2013 13:31] (current) |
{{indexmenu_n>2}} | {{indexmenu_n>2}} |
====== Logout ====== | ====== Logout ====== |
Для того, чтобы корректно выйти из системы, нужно использовать команду **core/logout**: | To exit Wialon correctly, use the command **core/logout**: |
| |
<code javascript> | <code javascript> |
</code> | </code> |
| |
//:!: Внимание!// Использование данного запроса рассмотрено в примере [[../../codesamples/login]]. | :!: You can find an example of this request in the sample [[../../codesamples/login]]. |
| |
===== Возвращаемый результат ===== | |
| |
| ===== Response ===== |
| |
<code=javascript> | <code=javascript> |
{ | { |
"error":<int> /* код ошибки */ | "error":<int> /* error code */ |
} | } |
</code> | </code> |
| |
===== Возможные ошибки ===== | ===== Errors ===== |
| |
^ Код ^ Значение ^ | ^ Code ^ Value ^ |
| 0 | успешный выход | | | 0 | exit successful | |
| 1 | ошибка соединения с сервером | | | 1 | server connection error | |
| 4 | не был авторизован | | | 4 | user not authorized | |