Aug 28, 2017 · 1 min read
Here is my code for the message data. I have literally copied your code to make it work. For your reference copying the sendTextMessage function
function sendTextMessage(recipientId, messageText) {
console.log(“Message text is %s”, messageText)
var messageData = {
recipient: {
id: recipientId
},
message: {
text: messageText
}
};
callSendAPI(messageData);
}
And also none of the callback’s are called hence added a console log with response code which prints 400.