Send Zalo message with attached photo
HTTP request
curl --location 'http://rest.esms.vn/MainService.svc/json/SendZaloFollowerMessage_V5_post_json/' \
--header 'Content-Type: text/plain' \
--header 'Cookie: ASP.NET_SessionId=asfgp2dj1kt4kbg1yzuo35ky; ASP.NET_SessionId=5xcbl12ska5q5wocug3chmjz' \
--data '{
"ApiKey": "{{ApiKey}}",
"SecretKey": "{{SecretKey}}",
"OAID": "{{OAID}}",
"CallbackUrl": "{{CallbackUrl}}",
"RequestId": "{{RequestId}}",
"Payload": {
"recipient": {
"user_id": "{{user_id}}"
},
"message": {
"text": "{{text}}",
"attachment": {
"type": "template",
"payload": {
"template_type": "media",
"elements": [
{
"media_type": "image",
"url": "{{url}}"
}
]
}
}
}
}
}'Parameter
Type
Required
Description
Parameter
Type
Description
Last updated