Viber
App · 5 actions
Send bot messages and read Viber bot and subscriber information.
Actions
| Action | What it does |
|---|---|
| Get bot information | Read the connected Viber bot profile and its public chat member list. |
| Get subscriber | Read the profile of a subscriber who has interacted with the bot. |
| Get subscriber online statuses | Check whether one or more known Viber subscribers are online. |
| Send picture | Send an image and caption to a Viber bot subscriber. |
| Send text message | Send a text message to a Viber bot subscriber. |
Get bot information
Read the connected Viber bot profile and its public chat member list.
Inputs
None.
Outputs
dataobject- The response from Viber.
Example output
{
"data": {
"id": "example",
"members": [
{}
],
"name": "example",
"status": 1,
"status_message": "example",
"subscribers_count": 1,
"uri": "example"
}
}Get subscriber
Read the profile of a subscriber who has interacted with the bot.
Inputs
- Subscriber ID
subscriber_idtextRequired - Subscriber ID.
Outputs
dataobject- The response from Viber.
Example output
{
"data": {
"status": 1,
"status_message": "example",
"user": {}
}
}Get subscriber online statuses
Check whether one or more known Viber subscribers are online.
Inputs
- Subscriber IDS
subscriber_idslistRequired - Subscriber IDS.
Outputs
dataobject- The response from Viber.
Example output
{
"data": {
"status": 1,
"status_message": "example",
"users": [
{}
]
}
}Send picture
Send an image and caption to a Viber bot subscriber.
Inputs
- Subscriber ID
subscriber_idtextRequired - Subscriber ID.
- Sender name
sender_nametextRequired - Sender name.
- Image URL
image_urltextRequired - Image URL.
- Caption
captiontext - Caption.
Outputs
dataobject- The response from Viber.
Example output
{
"data": {
"message_token": 1,
"status": 1,
"status_message": "example"
}
}Send text message
Send a text message to a Viber bot subscriber.
Inputs
- Subscriber ID
subscriber_idtextRequired - Subscriber ID.
- Sender name
sender_nametextRequired - Sender name.
- Message
messagetextRequired - Message.
Outputs
dataobject- The response from Viber.
Example output
{
"data": {
"message_token": 1,
"status": 1,
"status_message": "example"
}
}