REST API
使用我们的 RESTful API 通过 Viber Business Messages 直接发送轮播消息。
{
"messages": [
{
"from": "ALPHANAME",
"to": "380936670003",
"type": "viber_promo",
"text": "Text for Viber",
"ttl": 300,
"messageData": {
"carousel": {
"items": [
{
"title": "50% Off on All Shoes!",
"imageUrl": "https://smsbat.com/images/viber-types/smsbat-carousel.png",
"primaryButton": {
"label": "Shop Now",
"actionUrl": "https://smsbat.com/help/"
},
"secondaryButton": {
"label": "View Details",
"actionUrl": "https://omni.smsbat.com"
}
},
{
"title": "New Arrivals: Summer Collection",
"imageUrl": "https://smsbat.com/images/viber-types/smsbat-carousel.png",
"primaryButton": {
"label": "Explore",
"actionUrl": "https://smsbat.com/help/"
},
"secondaryButton": {
"label": "Learn More",
"actionUrl": "https://omni.smsbat.com"
}
}
]
}
}
}
]
}