libbux
libbux copied to clipboard
Server always return 'Bad Request'
Got 'Bad Request' when simply try to use this peace of code while succeed to auth
// Do login
bux.login(account, function(err, data) {
if (err) throw err;
// Here is your access_token, you can use it later
console.log("Your access_token: " + data.access_token);
let bux = BUX.api({ access_token: data.access_token });
bux.me(function(err, data) {
if (err) throw err;
console.log(data);
});
});
`