Goodreads Developers discussion
Reviews.list?
date
newest »
newest »
Figured out the problem: I was setting capitalization on the Shelf names, which was messing up the end URL query, which is case-sensitive. Solved it creating two separate variables when the shelf object is created, one for the string the API returns—"want-to-read"— and one for the user friendly string that gets shown in the app which is "Want to Read".


Currently building a Swift iOS app using the api and I’m coming up against something funky. I’m trying to cycle through an array of shelves and pull down data for each shelf using a for loop.
Here’s what it looks like:
The problem is each run through the loop returns the data for https://www.goodreads.com/review/list... as if no parameters were added to the request at all. But when I replace the name variable with the string of a shelf I know exists —like "currently-reading"—I get the proper result https://www.goodreads.com/review/list....
I’ve tried dropping the parameters array and creating the URL string myself but that’s not working either. Any ideas?