Об'єкт повідомлення VIBER
Attribute
Type
Description
to
type: array
The array of recipients msisdn's & reference's.
msisdn
type: string
The telephone number.
reference
type: string
A client reference.
text
type: string
The body of the VIBER message.
alpha_name
type: string
The sender of the message.
is_promotional
type: boolean
Indicates if the message is a promotional. Default: false.
options
type: hash
An hash with VIBER options.
viber
type: hash
An hash with VIBER optional params. (Required all params.)
img
type: string
An URL for image.
caption
type: string
Caption for the button.
action
type: 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”:”BSG”,
“is_promotional”:false,
“options”:{
“viber”:
{
“img”:”http://mysite.com/logo.png”,
“caption”:”See Details”,
“action”:”http://mysite.com/”
}
}
}