ccomeaux / boardgamegeek4android

BoardGameGeek application for Android (unofficial)
GNU General Public License v3.0
226 stars 47 forks source link

Filtering comments by date #162

Open tominglis opened 3 years ago

tominglis commented 3 years ago

At the moment you can filter the comments on games by rating (default) or commentator name.

Ideally it would also be able to filter by date (the default on the website).

I like to go back to my games from time to time and get that quick view of what other people think about them by looking at the most recent comments. This is not possible in the app just now.

Kaligula0 commented 2 years ago

There might be a solution by using the same request as the website does – an asynchronous request to https://api.geekdo.com/api/collections.

For example a request for the game raphaell7 put in an example (id=261490) is https://api.geekdo.com/api/collections?ajax=1&objectid=261490&objecttype=thing&oneperuser=1&pageid=1&require_review=true&showcount=100&sort=review_tstamp . Here's a JSON response: pic6694785 The obligatory params are objectid and objecttype, I see. (The other params are possibly for narrowing results and performance). Items (comments/ratings) can be sorted by any (I think) key of an item. However, various items miss some keys, what makes them disappear from the results while sorting by those keys.

//Copied from BGG app's guild.