This is the most minimal boilerplate demo of timekit sdk used in the browser. Fire up your console (CMD+ALT+I) and use the SDK by hitting methods on the "timekit" global variable, e.g.
timekit.configure({
app: 'back-to-the-future',
inputTimestampFormat: 'l h:i a Y-m-d'
});
timekit.auth({
email: 'doc.brown@timekit.io',
password: 'DeLorean'
}).then(function(response) {
console.log('user authenticated!');
console.log(response);
}).catch(function(response) {
console.log('an error occured!');
console.log(response);
});
timekit.findTime({
emails: ['doc.brown@timekit.io', 'marty.mcfly@timekit.io'],
future: '3 days',
duration: '30 minutes'
}).then(function(response) {
console.log('find time OK, heres the result:');
console.log(response);
});