goodreads-api-node icon indicating copy to clipboard operation
goodreads-api-node copied to clipboard

Getting `Invalid OAuth Request` when calling `getAccessToken`

Open garyking opened this issue 5 years ago • 4 comments

When I call getAccessToken, I get the error Invalid OAuth Request from the Goodreads API.

Could someone verify if it's still possible to use this Node library with Goodreads OAuth?

garyking avatar Feb 01 '20 02:02 garyking

Same result for me...

0xsven avatar Oct 07 '20 16:10 0xsven

I've been able to use getAccessToken successfully and authenticate with Goodreads. There was a few things I needed to adjust though to get it to work.

louisefindlay23 avatar Nov 07 '20 12:11 louisefindlay23

I've been able to use getAccessToken successfully and authenticate with Goodreads. There was a few things I needed to adjust though to get it to work.

could you please share which types of changes required?

dhaval2060 avatar Nov 23 '20 04:11 dhaval2060

@dhaval2060, the changes I remember were I had to use the below method for initOAuth because the other one didn't work and my localhost server needed to be HTTPS which I used https-localhost for.

const gr = goodreads(myCredentials);
gr.initOAuth(callbackURL);

Here's my server.js file if that helps further.

louisefindlay23 avatar Nov 24 '20 21:11 louisefindlay23