Basic example throws `Error: authentication failed - client error`
Hello,
I'm struggling using this API for my project... at the very beginning :)
I initialised a new node project and added this package only. Now when running the basic example it returns Error: authentication failed - client error
I put in the consumer key and secret that was given to me, when I created my app in the Splitwise Dashboard.
Is this still supposed to work?
Thank you and have a great day everyone, Hans
sorry for the slow reply @hansipete. can you provide an example of the code that produces the error (with secrets redacted)? thanks!
Hello,
I was using like:
const sw = Splitwise({
consumerKey: SPLITWISE_CONSUMER_KEY,
consumerSecret: SPLITWISE_CONSUMER_SECRET,
});
sw.getCurrentUser()
.then((data) => {
console.log(data);
})
.catch((e) => {
console.log(e);
});
And am getting: Error: getCurrentUser - getCurrentUser - authentication failed - unknown error