Goodreads Developers discussion

28 views
questions > so..do oauth api requests not work anymore?

Comments Showing 1-1 of 1 (1 new)    post a comment »
dateUp arrow    newest »

message 1: by Nick (last edited Nov 06, 2018 05:07PM) (new)

Nick Cianci | 3 comments With the developer key, I can retrieve information.
But when I need to write data with 'oauth' as the API outlines, I get a 401 error. And I'm doing this while authenticated on my nodejs/express server.
I can login with oauth fine and store the cookie in the browser.
Here's an example:

This works fine: Get the books on a members shelf
This doesn't: Add a book to a shelf or Get friend requests
401 error..
Is there anything else I have to do?

app.get('/api/friendrequests', async(req,res) => {

var friendreqs = await
axios.get('https://www.goodreads.com/friend/requ...
console.log(friendreqs+'friendreqs');

})


back to top