O objeto de mensagem VIBER
Attribute
Type
Description
to
type: array
A matriz de msisdns e referências de destinatários.
msisdn
type: string
O número de telefone.
reference
type: string
Uma referência de cliente.
text
type: string
O corpo da mensagem VIBER.
alpha_name
type: string
O remetente da mensagem.
is_promotional
type: boolean
Indica se a mensagem é promocional. Padrão: falso.
options
type: hash
Um hash com opções VIBER.
viber
type: hash
Um hash com parâmetros opcionais VIBER. (Todos os parâmetros obrigatórios.)
img
type: string
Um URL para imagem.
caption
type: string
Legenda para o botão.
action
type: string
Um URL para o botão de ação.
MESSAGE OBJECT EXAMPLE
{ “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/”
}
}
}