Differences
This shows you the differences between two versions of the page.
Next revision
|
Previous revision
|
en:sidebar:remoteapi:apiref:user:send_sms [23/01/2013 08:46] 127.0.0.1 external edit |
en:sidebar:remoteapi:apiref:user:send_sms [29/11/2013 13:31] (current) |
{{indexmenu_n>6}} | {{indexmenu_n>6}} |
====== Отправка SMS ====== | ====== Send SMS ====== |
Чтобы отправить SMS, нужно использовать команду **user/send_sms**: | |
| To send SMS, use the command **user/send_sms**: |
<code javascript> | <code javascript> |
svc=user/send_sms¶ms={"phoneNumber":<text>, | svc=user/send_sms¶ms={"phoneNumber":<text>, |
</code> | </code> |
| |
===== Параметры ===== | ===== Parameters ===== |
^ Название ^ Описание ^ | ^ Name ^ Description ^ |
| phoneNumber | номер телефона | | | phoneNumber | phone number | |
| smsText | текст SMS | | | smsText | message text | |
| |
===== Возвращаемый результат ===== | ===== Response ===== |
<code javascript> | <code javascript> |
{} /* пустой объект при удачном выполнении, при неудачном - код ошибки */ | {} /* empty object if execution successful, if not - error code */ |
</code> | </code> |
| |
===== Возможные ошибки ===== | ===== Errors ===== |
^ Код ^ Значение ^ | ^ Code ^ Value ^ |
| 6 | Ошибка отправки SMS | | | 6 | error sending SMS | |