This shows you the differences between two versions of the page.
en:sidebar:remoteapi:apiref:core:logout [12/02/2013 09:17] alek |
en:sidebar:remoteapi:apiref:core:logout [29/11/2013 13:31] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{indexmenu_n>2}} | ||
- | ====== Logout ====== | ||
- | To exit Wialon correctly, use the command **core/logout**: | ||
- | <code javascript> | ||
- | svc=core/logout¶ms={} | ||
- | </code> | ||
- | |||
- | :!: You can find an example of this request in the sample [[../../codesamples/login]]. | ||
- | |||
- | ===== Response ===== | ||
- | |||
- | <code=javascript> | ||
- | { | ||
- | "error":<int> /* error code */ | ||
- | } | ||
- | </code> | ||
- | |||
- | ===== Errors ===== | ||
- | |||
- | ^ Code ^ Value ^ | ||
- | | 0 | exit successful | | ||
- | | 1 | server connection error | | ||
- | | 4 | user not authorized | |
|