var options = {
key: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'
};
var api = new Api(options);
View full list of supported endpoint on the wiki : API:Main
var endpoint = 'account/banck';
api.get(endpoint).then(function(data) {
// do something with the data
})
api.get(endpoint).catch(function(error) {
// do something with the error
})
api.get(endpoint).then(function(data) {
// do something with the data
}, function(error) {
// do something with the error
})