Goodreads Developers discussion

243 views
bugs > user.friends invalid key/request

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

message 1: by Ahmed (new)

Ahmed Alsuwaidi | 14 comments Hi, I am following the API for User.friends method https://www.goodreads.com/friend/user...

However I always get an "Invalid API key", I tried changing the URL around after reading some of the posts here for this specific method and it didn't yield any better results


message 2: by Yoly (new)

Yoly (macaruchi) | 22 comments I am getting the same result.
If we call it without the key parameter we get an "Invalid API" key message, after including the key parameter it returns a "not authorized message".

I've authenticated via oauth and it also doesn't work on the browser logged into the site.

Could the documentation be wrong or maybe there's a problem calling this function?


message 3: by Ahmed (new)

Ahmed Alsuwaidi | 14 comments Yea I'm not sure what's wrong with it, hopefully some of the guys from Goodreads will help


message 4: by Yoly (new)

Yoly (macaruchi) | 22 comments Ahmed just wanted to let you know in case you don't get to see the other thread that Ettore indicated how to correctly access this api method. I tried it and it worked.

Here's the thread.
https://www.goodreads.com/topic/show/...


message 5: by Ahmed (new)

Ahmed Alsuwaidi | 14 comments Thanks Yoly! Good luck


message 6: by Ettore (new)

Ettore Pasquini Thanks Yoly for following up here. This thread slipped through the cracks and we didn't reply. Sorry about that! Glad to know we found a workaround though.


message 7: by Ahmed (new)

Ahmed Alsuwaidi | 14 comments Sorry to bump this thread, I wasn't able to give Yoly's response a try until a few days ago as I was busy with other stuff, however when I did, I still get the same response.


message 8: by Yoly (new)

Yoly (macaruchi) | 22 comments It doesn't work in the browser, but I just tested my code and it still works, it downloaded my list of friends.

This is the URL I'm using to get my friends list:
https://www.goodreads.com/friend/user...

Are you making this call with the oauth headers? Also you don't need to specify the api key.


message 9: by Ahmed (new)

Ahmed Alsuwaidi | 14 comments Works! Thanks Yoly


message 10: by Rachel W (new)

Rachel W (razzle97) | 1 comments I know you may not see this Yoly, but thank you! This request pattern works for me 2.5 years later :)


message 11: by Piyush (new)

Piyush Jain | 9 comments HI, can anyone help me here
when I am using
https://www.goodreads.com/friend/user...
(I have changed the key which is incorrect so it may throw some other error that 401, but with correct key I am having 401 error)

it says not authorized

I just want a user friends list only so i am using "Get a user's friends" api from here
https://www.goodreads.com/api/index#u...

AND I haven't yet done the authorization part
so please tell me for this task do i have to do oauth first and if then please also tell me how to establish oauth here

I am currently using api as curl
and I can apply oauth in php as working on php/js project
please anyone help me here ASAP

Q) AND please also tell me can I get the response in json format rather than xml if yes then HOW please?

Q) AND In the "Get a user's friends" api, does the response contain 'email_id' of all the user friends.

Thanks for help


back to top