send_sms
To send an SMS, use the following method:
svc=user/send_sms¶ms={"phoneNumber":"<text>",
"smsText":"<text>"}
Parameters
The required parameters are marked with an asterisk (*).
| Name | Description |
|---|---|
| phoneNumber* | Phone number. |
| smsText* | Message text. |
Response
{
"hash":"<text>" /* returns an SMS GUID if sending is successful */
}
Error codes
| Error code | Value |
|---|---|
| 6 | Error sending SMS, or the user can’t send SMS. |
| 4 | Incorrect parameter. |