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?
찾으시는 영화나 TV 프로그램이 없나요? 로그인 하셔서 직접 만들어주세요.
이 항목을 평가하거나 목록에 추가할까요?
회원이 아닌가요?
ticao2 🇧🇷 pt-BR님의 댓글
4월 4, 2024 at 11:57 오전
Genre 28 - Action, is valid only for Movies.
For TV use the genre 10759 - Action & Adventure
milan_gl님의 댓글
4월 4, 2024 at 2:02 오후
Thanks a lot, will try!