Goodreads Developers discussion

78 views
questions > api/auth_user (or getting the userid of the currently logged in user.)

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

message 1: by Binesh (new)

Binesh Bannerjee | 2 comments Hi.

I'm trying to get the userid of the currently logged in user. I'm using python and the rauth.Oauth1Service, OAuth1Session to do so.

I seem to be able to authenticate myself (by calling my authorize_url function, and then visiting the url that it shows.)

I seem to be able to list my shelves by calling the shelf/list api call.

Here is my gist: https://gist.github.com/bnsh/239d808f...

But, when I try to call the api/auth_user api call, I get a rather opaque: "Invalid OAuth Request".

Maybe I'll say a little about what I'm trying to do as well. Eventually, I want to be able to list the logged in users shelves and the books that are on those shelves. So, it seems to me, that ultimately, I'll need these three API calls:

* shelf/list (which doesn't seem to require a user)
* api/auth_user (_simply_ to get the userid which)
* review/list (seems to require a userid)

Thanks!


message 2: by Oleg (new)

Oleg Linkin (maledictus) | 60 comments Try to use https urls


back to top