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

21 views
questions > Best way to get which page a user is on?

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

message 1: by Shawn (new)

Shawn | 23 comments On the main page of my app I'm showing a list of all the books the user is reading and their progress. Right now that results in 1 + N web requests, something like this:

1 call to review/list.xml to get the list of the books on a users "currently-reading" shelf.

N calls for each book to review/show_by_user_and_book.xml

Is there a better way to get what percentage complete a user is on each of their books?

Thanks


message 2: by Ettore (new)

Ettore Pasquini I'm afraid we don't have an api for that. In our apps we show the progress on the book/show page of each book.


message 3: by Shawn (new)

Shawn | 23 comments Ah bummer, I really like the look of the GoodReads home page with all your books and their latest status on the right side and I'm recreating it.

I'll just issue a separate show_by_user_and_book for each book and see what that does to perf. I'm caching pretty heavily so hopefully it won't be too bad.

Thanks


message 4: by Michael (new)

Michael Economy (michaeleconomy) We'll consider adding a call to make this a bit easier in the future.


back to top