This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
en:sidebar:remoteapi:apiref:core:duplicate [23/01/2013 08:43] 127.0.0.1 external edit |
en:sidebar:remoteapi:apiref:core:duplicate [02/04/2013 09:21] zuve |
||
---|---|---|---|
Line 1: | Line 1: | ||
{{indexmenu_n>19}} | {{indexmenu_n>19}} | ||
- | ====== Войти как ====== | + | ====== Operate As ====== |
- | Чтобы войти от имени другого пользователя, нужно использовать команду **core/duplicate**: | + | |
+ | To login to the system on behalf of other user, you need to execute the command **core/duplicate**: | ||
<code javascript> | <code javascript> | ||
svc=core/duplicate¶ms={"operateAs":<text>, | svc=core/duplicate¶ms={"operateAs":<text>, | ||
- | "continueCurrentSession":<bool>} | + | "continueCurrentSession":<bool>, |
+ | "clientIp":<text>} | ||
</code> | </code> | ||
- | Дублирует сессию, базируясь на активной. Обе сессии должны быть открыты с одного и того же IP. | + | It duplicates the active session. |
- | ===== Параметры ===== | + | ===== Parameters ===== |
- | ^ Название ^ Описание ^ | + | ^ Name ^ Description ^ |
- | | operateAs | имя пользователя, от имени которого вы хотите войти (должно быть пустым, если вы хотите войти как главный пользователь) | | + | | operateAs | name of a user you want to operate as (must be empty if you want to operate as the main user) | |
- | | continueCurrentSession | должна ли продолжаться текущая сессия, по умолчанию false, если true, то оба sid будут валидными | | + | | continueCurrentSession | defines whether to continue the previous session (false by default, if true - both //sid//'s remain valid) | |
+ | | clientIp | IP address for doubling session (optional parameter) | | ||
- | ===== Возвращаемый результат ===== | + | ===== Response ===== |
- | Формат возвращаемого результата будет такой же как в команде [[login|логин]]. | + | Response format is be the same as in the command [[login|login]]. |
|