Hello. Is there any way to get user rating for movie when doing /movie/{movie_id} request? If app has a validated session id, of course. Also, would be great to get user rating for movies/shows with all common request like /movie/popular.
I'm trying to implement a display of user rating of movie/show in all pages of app, like Popular/Search/Discover/Etc. But for now i didn't find the best way to realize it, rather than fetch rated list in background with /account/{account_id}/rated/movies(tv) request, keep that data in app DB and than connect it with other requests results by TMDb id.
This method requires a lot of extra requests, it does not always show up to date information and requires regular sync with account rated list. So the question is, if there any best way to implement it? Thanks. (Sorry for my poor English)
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on January 14, 2017 at 11:31 AM
Hi Ivan,
You bet, the method you're looking for is the account states method.
Cheers.
Reply by Ivan Antsiferov
on January 14, 2017 at 11:59 AM
Thanks for reply, account states method is perfect for movie details page. But what about requests, that returns 20 movies as result, like Get Popular movies? Is there any way to get user rating for all 20 results in same request?
Reply by Travis Bell
on January 14, 2017 at 12:11 PM
There is no such method right now but I can definitely add one. I use a similar system on the website here, you can see after a page load I toggle the account states of the visible items.
I've created a new ticket for this here. I'll bump this thread when it is complete.