Error Pop-Up - Close Button This group has been designated for adults age 18 or older. Please sign in and confirm your date of birth in your profile so we can verify your eligibility. You may opt to make your date of birth private.

Goodreads Developers discussion

238 views
user.friends issue

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

message 1: by Yoly (new)

Yoly (macaruchi) | 22 comments I've seen several old posts regarding this same issue and it seems to have been resolved in the past, but it's not working anymore. There is currently no way to get a user's friends list.

According to the documentation, the url we get a user's friends is :
https://www.goodreads.com/friend/user...

The sample Url provided on your documenatation lists the Url as:
https://www.goodreads.com/friend/user...

This returns a "Invalid API key" message.
If I add my key I get a: "not authorized" message.

I posted about this last week and haven't gotten a response, as I have seen with similar threads on the same issue.

I am calling this via oauth. I've tried it in the browser logged in into Goodreads and I get the same response as explained above.

I'm trying to see my own friends list so I don't think this is a permissions issue, also my profile is set to public.

Any ideas?
Thank you.


message 2: by Ettore (last edited May 11, 2015 10:37AM) (new)

Ettore Pasquini Hey Yoly, it looks like the docs are confusing and the server is being very picky about how api params are sent. We need to look into this further and make it better. I filed a ticket for this (IOS-2996).

For the time being, can you try this workaround? Call the api with these params:

GET https://www.goodreads.com/friend/user

params:
id=USER_ID
format=xml

+ the same OAuth headers you're using. Obviously make sure to have the params as part of the signed content.


message 3: by Yoly (new)

Yoly (macaruchi) | 22 comments Just tested it and it works.

Thank you so much for your help Ettore!


message 4: 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