Поддержка The Movie Database

TMDB is great by the way - hopefully they can knock IMDB of it's perch!

Having spent over 11 hours attempting this and studying the documentation we still cant work out if this is an error with the API or our calls. We suspect this will take someone about 20 seconds to figure out.

We are trying to use GET find/{imdb_id} to return: poster_path, tmdb_id, etc

When we try:

curl -k --request GET \--url 'https://api.themoviedb.org/3/find/tt0133093?external_source=imdb_id&language=en-US&api_key=APIKEYHERE' \--data '{poster_path}';'{id}';'{title}'

we recieve a error:

Couldn't resolve host (along with an output of all the information and not just the 'poster_path, id, title' that we called.)

We are using a shell command via Tasker on Android to test.

Are we doing something wrong?

Cheers for the pointers.

Warm regards

L

3 ответов (на странице 1 из 1)

Jump to last post

My first instinct would be something to do with the use of single quotes. Also, passing POST data though the GET method isn't supported so there's no need to use --data at all.

curl -k --request GET --url "https://api.themoviedb.org/3/find/tt0133093?external_source=imdb_id&language=en-US&api_key=###"

Is working properly.

@travisbell

Really appreciate the swift response Travis - helps a lot with our deadlines!

Apologies; as the single quotes was just a typo - we are using double and your example works great.

What we were ideally hoping for help with is whether we could select which pieces of information are return instead of the whole lot. i.e- just things like: title, poster_url, tmdb_ID, etc

Is this possible and if so, what would the curl/command be to achieve that?

Cheers again Travis!

@Paszt

Perfect - thank you Elizabeth!

Не можете найти фильм или сериал? Войдите на сайт, чтобы добавить его.

Глобальные

s фокусироваться на панели поиска
p открыть меню профиля
esc закрыть открытое окно
? открыть окно сочетаний клавиш

На страницах медиа

b назад (или выше, если применимо)
e перейти на страницу правки

На страницах сезонов

(стрелка вправо) перейти к следующему сезону
(стрелка влево) перейти к предыдущему сезону

На страницах эпизодов

(стрелка вправо) перейти к следующему эпизоду
(стрелка влево) перейти к предыдущему эпизоду

На всех страницах изображений

a открыть окно добавления изображения

На всех страницах правки

t открыть переключатель переводов
ctrl+ s отправить форму

На страницах обсуждения

n создать новое обсуждение
w сменить статус отслеживания
p публичное/приватное
c закрыть/открыть
a открыть страницу действий
r ответить в обсуждении
l перейти к последнему ответу
ctrl+ enter отправить своё сообщение
(стрелка вправо) следующая страница
(стрелка влево) предыдущая страница

Параметры

Хотите поставить оценку или добавить в список?

Войти