/** * Run in your JavaScript console. * * To run this example, open your JavaScript console, paste the JavaScript code * hereafter and replace the variables where necessary. */ var apiKey = "YOUR_API_KEY"; var text = "Hello there"; var APIdazeClientObj = new APIdaze.CLIENT({ apiKey: apiKey, debug: true, onReady: function() { APIdazeClientObj.sendText({ text: text }, function(event){ alert(JSON.stringify(event, null, 4)); }); }, onError: function(errorMessage){ alert("Got error : " + errorMessage); } });