post
https://www.fast2sms.com/dev/whatsapp///messages
Send a template message that includes a dynamic Location header. You must provide the latitude, longitude, name, and address.
Example Request Body
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "PHONE_NUMBER",
"type": "template",
"template": {
"name": "location_test",
"language": {
"code": "en"
},
"components": [
{
"type": "header",
"parameters": [
{
"type": "location",
"location": {
"longitude": -122.425332,
"latitude": 37.758056,
"name": "Facebook HQ",
"address": "1 Hacker Way, Menlo Park, CA 94025"
}
}
]
},
{
"type": "body",
"parameters": [
{
"type": "text",
"text": "Harsh"
}
]
}
]
}
}