Tin Zalo Tư vấn dạng button
HTTP request
curl --location --request POST 'https://rest.esms.vn/MainService.svc/json/SendZaloFollowerMessage_V5_post_json/' \
--header 'Content-Type: text/plain' \
--data-raw '{
"ApiKey": "{{ApiKey}}",
"SecretKey": "{{SecretKey}}",
"OAID": "{{OAID}}",
"RequestId": "96accf59-0c41-4bc7-a5c4-4a466c2e41c2",
"Payload": {
"recipient": {
"user_id": "{{user_id}}"
},
"message": {
"text": "Chào mừng bạn đến với hệ thống eSMS. Đây là tin nhắn zalo dạng button.",
"attachment": {
"type": "template",
"payload": {
"buttons": [
{
"title": "Link url",
"payload": {
"url": "https://developers.esms.vn/esms-api/ham-gui-tin/tin-zalo-tu-van-dang-button"
},
"type": "oa.open.url"
},
{
"title": "QUERY SHOW",
"type": "oa.query.show",
"payload": "#callback_data"
},
{
"title": "QUERY HIDE",
"type": "oa.query.hide",
"payload": "#callback_data"
},
{
"title": "OPEN SMS",
"type": "oa.open.sms",
"payload": {
"content": "Cảm ơn quý khách đã sử dụng dịch vụ của chúng tôi. Chúc quý khách một ngày mới tốt lành!",
"phone_code": "0901888484"
}
},
{
"title": "OPEN PHONE",
"type": "oa.open.phone",
"payload": {
"phone_code": "0901888484"
}
}
]
}
}
}
}
}'
// Truyền \r\n để gửi nội dung xuống dòngTham số
Kiểu dữ liệu
Tính bắt buộc
Mô tả
Tham số
Kiểu dữ liệu
Tính bắt buộc
Mô tả
Tham số
Kiểu dữ liệu
Tính bắt buộc
Mô tả
Tham số
Kiểu dữ liệu
Tính bắt buộc
Mô tả
Giá trị type
Kiểu dữ liệu của payload
Giá trị payload và kết quả khi người quan tâm bấm vào
Thuốc tính
Kiểu dữ liệu
Mô tả
Last updated