This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:pro:remoteapi:codesamples:batch [06/03/2013 16:31] zuve |
en:pro:remoteapi:codesamples:batch [17/04/2013 13:43] zuve |
||
---|---|---|---|
Line 2: | Line 2: | ||
====== Executing several commands at once ====== | ====== Executing several commands at once ====== | ||
- | Several commands can be executed with one request. In this case, the response is also presented in one JSON. For example we may need to send an online message to many users. We can do this using combination of [[../apiref/core/batch|core/batch]] and [[../apiref/user/update_user_notification|update_user_notification]] commands: | + | Several commands can be executed with one request. In this case, the response is also presented in one JSON. For example we may need to send an online message to many users. We can do this using combination of [[../apiref/core/batch|core/batch]] and [[../apiref/user/update_user_notification|user/update_user_notification]] commands: |
<code> | <code> | ||
Line 28: | Line 28: | ||
"callMode":"create" | "callMode":"create" | ||
} | } | ||
- | }]&sid=<your_sid> | + | }]&ssid=<your_sid> |
</code> | </code> | ||
- | Результат выполнения: | + | Response: |
<code javascript> | <code javascript> | ||
[ | [ |
|