E-mail маркетинг, сервис рассылки e-mail и SMS
(495) 540-4265 (800) 555-6696

send_sms(phone, sender, text)

A method to create and send a single SMS message

Sample

http://api.unisender.com/en/api/sendSms?format=json&api_key=KEY&phone=79261234567&sender=MySite&text=Hello

Return value

JSON object containing 3 records:

currency
Three-letter currency code (e. g. USD, EUR, AUD, RUR). The currency of your account is used here.
price
Price in the currency defined above. A number with a decimal point.
sms_id
Unique message number. It's a 64 char long string. Can be used to check the message status using checkSms.

Additional Error Codes

In a case of error you may also get the following error codes (standard error codes are also available):

dest_invalid
Delivery is impossible because the target phone number is incorrect.
src_invalid
Divery is impossible becase the "sender" parameter is incorrect.

Parameters

phone*
Target phone number in the international format (leading + may be omitted). Country code is mandatory.
sender*
Sender ID may be either a phone number (international format) or up to 11 latin characters and digits. Also, dot ("."), dash ("-") and comma (",") are available.
text*
Message text, up to 1000 chars long. Tags like {{Name}} are ignored.

* denotes mandatory fields.