Botão Call To Action
1 min
let data = JSON.stringify({
"number": "{{number}}",
"customData": {
"body": "Então {{name}}, me diz o que você achou?",
"name": "quick_reply",
"params": "{\"display_text\":\"LEGAL\",\"id\":\"aaa\",\"disabled\":false}",
"nameb": "quick_reply",
"paramsb": "{\"display_text\":\"NÃO GOSTEI\",\"id\":\"ccc\",\"disabled\":false}"
}
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://{{backendURL}}/api/messages/sendBTN2',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer {{connection_token}}'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});