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 [12/02/2013 09:17] alek |
||
---|---|---|---|
Line 1: | Line 1: | ||
{{indexmenu_n>2}} | {{indexmenu_n>2}} | ||
====== Logout ====== | ====== Logout ====== | ||
- | Для того, чтобы корректно выйти из системы, нужно использовать команду **core/logout**: | + | To exit Wialon correctly, use the command **core/logout**: |
<code javascript> | <code javascript> | ||
Line 7: | Line 7: | ||
</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 | |
|