Console version : console.html
APIdaze will send the text to your External Script. Use this method if you want to forward text from a webpage (e.g. : a chat window), to backend accessible resources like SMS or internal Slack channels for instance!
Call this function on a APIdaze.CLIENT
object, e.g. : CLIENT.sendText(userData, userCallback);
userData
:
{ text : "Some text to send", // Required userKeys : { // userKeys is optional someparameter: "somevalue" } }
userCallback
(optional) :
function(event) { // event.ok : true or false // event.message : text message received as a result // event.content : content received from your External Script as string // event.data : JSON data received from your External Script }