BUG: Node-SDK shorturl.js

function create (url, callback) {
var body = {
shorturl: {
original_url: url
}
};
this.api.post('shorturls', null, body, function (error, result) {
this.api.retrieveData(error, result, 'shorturls', callback);
});
}

You forgot to bind(this).

function create (url, callback) {
var body = {
shorturl: {
original_url: url
}
};
this.api.post('shorturls', null, body, function (error, result) {
this.api.retrieveData(error, result, 'shorturls', callback);
}.bind(this));
}

Please also see my PR, it is pending:
https://github.com/oneall/node-js-sdk/pull/4

    Welcome!

    Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

    Please click on the link below to connect to the forum with your OneAll account.