Tin Zalo dạng yêu cầu thông tin người dùng
HTTP request
POST https://api-portal.senbac.com/MainService.svc/json/SendZaloFollowerMessage_V5_post_json/
Content Type: application/json
Response Type: application/json
curl --location 'https://api-portal.senbac.com/MainService.svc/json/SendZaloFollowerMessage_V5_post_json/' \
--header 'Content-Type: application/json' \
--data '{
"ApiKey": "{{ApiKey}}",
"SecretKey": "{{SecretKey}}",
"OAID": "{{OAID}}",
"CallbackUrl":"{{CallbackURL}}",
"Payload": {
"recipient": {
"user_id": "{{UserID}}"
},
"message": {
"attachment": {
"type": "template",
"payload": {
"template_type": "request_user_info",
"elements": [
{
"title": "{{Title}}",
"subtitle": "{{Subtitle}}",
"image_url": "{{ImageURL}}"
}
]
}
}
}
}
}'Cấu trúc body của request:
ApiKey
string
Yes
ApiKey của tài khoản.
SecretKey
string
Yes
Secretkey của tài khoản.
OAID
string
Yes
Zalo OA ID, là ID của trang Zalo Offical Account của doanh nghiệp. Doanh nghiệp cần đăng nhập vào trang quản trị của Zalo OA để lấy phần Zalo OA ID này. Chú ý: sẽ phải đăng ký trước khi sử dụng.
User_id
string
Yes
Userid cần gửi đến, đây là userid của zalo.
Title
string
Yes
Tiêu đề hiển thị của template. Lưu ý: Hỗ trợ tối đa 100 ký tự.
Subtitle
string
Yes
Tiêu đề phụ của template. Lưu ý: Hỗ trợ tối đa 500 ký tự.
ImageUrl
string
Yes
Link hình ảnh, chấp nhận link đuôi PNG và JPG.
Response:
Request hợp lệ.
Sai thông tin ApiKey/SecretKey.
Cấu trúc body của response:
CodeResult
string
Mã trả về.
SMSID
string
ID tin nhắn do hệ thống trả về.
ErrorMessage
string
Thông tin lỗi trả về (nếu có lỗi).
Thông tin chi tiết mã lỗi xem ở bảng: Mã lỗi .
Last updated