Differences
This shows you the differences between two versions of the page.
|
|
en:sidebar:remoteapi:apiref:core:batch [18/02/2013 09:03] zuve |
en:sidebar:remoteapi:apiref:core:batch [29/11/2013 13:31] |
{{indexmenu_n>18}} | |
====== Executing several commands ====== | |
Several commands can be executed at one request. For this, use **core/batch**: | |
<code javascript> | |
svc=core/batch¶ms=[ | |
{ | |
"svc":<text>, | |
"params":{} | |
} | |
] | |
</code> | |
| |
:!: You can find an example of this request in the sample [[../../codesamples/batch]]. | |
| |
===== Parameters ===== | |
^ Name ^ Description ^ | |
| svc | command name | | |
| params | parameters | | |
| |
===== Response ===== | |
<code javascript> | |
[ | |
{ /* if there are no errors returns object with data */ | |
... | |
}, | |
{ /* error code if an error has occurred */ | |
"error":<int> | |
}, | |
... | |
] | |
</code> | |