Hello guys,
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.themoviedb.org/3/discover/tv',
params: {page: '1', with_genres: '28'},
headers: {
accept: 'application/json',
Authorization: 'My token is used here properly'
}
};
axios
.request(options)
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.error(error);
});
This GET request returns nothing for me, an empty results array. Is it something wrong on my side or is there some kind of issue?
Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.
Doriți să evaluați sau să adăugați acest articol într-o listă?
Nu sunteți membru?
Răspuns de ticao2 🇧🇷 pt-BR
pe data de 4 aprilie 2024 la ora 11:57 AM
Genre 28 - Action, is valid only for Movies.
For TV use the genre 10759 - Action & Adventure
Răspuns de milan_gl
pe data de 4 aprilie 2024 la ora 2:02 PM
Thanks a lot, will try!