the discover movie API returns with different response body every day, some values are optionals and sometimes comes without being optionals so the response fails to be parsed in my data model
Non riesci a trovare un film o una serie Tv? Accedi per crearlo.
Vuoi valutare o aggiungere quest'elemento a una lista?
Non sei un membro?
Risposta da ticao2 🇧🇷 pt-BR
il 22 maggio, 2020 alle 12:17AM
In order for someone to help you with API Request questions, it is critical that you post here the API Request you are using.
Remember to replace your Key with [THE_KEY] , or something like that.
For example, if you are using the parameter & sort_by = popularity.desc,
the answer may be different because the popularity changes every day.
For this and other reasons it is necessary to see your API Request.
Risposta da AbdallahShawky
il 22 maggio, 2020 alle 6:35PM
i use this API https://api.themoviedb.org/3/discover/movie?api_key=[THE_KEY]&language=en-US&sort_by=popularity.desc&include_adult=false&include_video=false&page=1
Risposta da ticao2 🇧🇷 pt-BR
il 22 maggio, 2020 alle 7:29PM
So, this is the reason.
Popularity changes all the time.
If I'm not mistaken, it is calculated based on:
Alias, see the first row of Posters on the TMDb homepage.
It is the Most Popular row.
Every time I update, the order changes.
What I didn't understand is what you mean by Optional Values.
What Values are you talking about?
In the answer, all the films have the same items.
An item may be blank because no user has added the data.