VIBER объект
Attribute |
Type |
Description |
to |
array |
The array of recipients msisdn's & reference's. |
msisdn |
string |
The telephone number. |
reference |
string |
A client reference. |
text |
string |
The body of the VIBER message. |
alpha_name |
string |
The sender of the message. |
is_promotional |
boolean |
Indicates if the message is a promotional. Default: false. |
options |
hash |
An hash with VIBER options. |
viber |
hash |
An hash with VIBER optional params. (Required all params.) |
viber |
hash |
An hash with VIBER optional params. (Required all params.) |
img |
string |
An URL for image. |
caption |
string |
Caption for the button. |
action |
string |
An URL for action button. |
ПРИМЕР ОБЪЕКТА СООБЩЕНИЯ
{ "to": [ { "msisdn": "380972920000", "reference": "ext_id_19" } ], "text": "My Viber messages is shinier than your SMS messages", "alpha_name": "Notificore", "is_promotional": false, "options": { "viber": { "img": "http://mysite.com/logo.png", "caption": "See Details", "action": "http://mysite.com/" } } }