/** * 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 userid = "johndoe"; var APIdazeClientObj = new APIdaze.CLIENT({ apiKey: apiKey, debug: true, userKeys: { command: "auth", userid: userid }, onReady: function(sessionObj) { alert("Logged in with session id " + sessionObj.id + " !"); }, onError: function(errorMessage){ alert("Got error : " + errorMessage); } });