const session = 'my-session';
const response = await fetch(`https://api.wappfy.com.br/api/${session}/status/text`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
text: 'Hello! This is my story of the day!',
backgroundColor: '#FF5733',
font: 1,
participants: ['5511999999999@s.whatsapp.net']
})
});
const data = await response.json();
console.log(data);